Close window when losing focus.

Hello.
How can I close spesific window when the focus goes to other window ?
thanks.

Comments

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

Howdy, Stranger!

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

Categories

In this Discussion