window.focus() Sets focus on the window. Syntax window.focus() Parameters None. Example if (clicked) { window.focus(); } Notes None. Specification DOM Level 0. Not part of specification.
Sets focus on the window.
window.focus()
None.
if (clicked) { window.focus(); }
DOM Level 0. Not part of specification.