Close window when losing focus. - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Close window when losing focus.

ampoampo Posts: 63Member
How can I close spesific window when the focus goes to other window ?


  • WeirdofreakWeirdofreak Posts: 439Member
    window.onBlur = window.close(); ought to do it.

    If you didn't open the window using Javascript, there'll be a confirmation box, though.
Sign In or Register to comment.