window.focus()

window.focus method can bring focus to the window. Here is the syntax
window.focus();
When window is opened , the focus remains on it.

If it is minimized or closed then the window focus will return to main window or parent window.

Check the status of the window focus by using document.hasFocus()

You can see the source code of this demo at blur()

Subscribe

* indicates required
Subscribe to plus2net

    plus2net.com




    Post your comments , suggestion , error , requirements etc here .




    We use cookies to improve your browsing experience. . Learn more
    HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
    ©2000-2021 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer