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 Member Posts: 63
Hello.
How can I close spesific window when the focus goes to other window ?
thanks.

Comments

  • WeirdofreakWeirdofreak Member Posts: 439
    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.