Skip to main content

window_focus

Function window_focus 

Source
pub(crate) fn window_focus(
    _it: &mut Interp,
    _this: Value,
    _a: &[Value],
) -> Result<Value, Value>
Expand description

window.focus()/.blur()(丸ごと未対応だった。理由はwindow_openと 同じ)。この処理系にはウィンドウ/タブという概念自体が無く( document.hasFocus()が常にtrue固定なのと同じ理由)、フォーカス要求 先も存在しないため無害な no-op。