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!

Categories

Close window when losing focus.

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

Comments

  • 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.