Forum Moderators: open

Message Too Old, No Replies

Close popups when navigating away from parent

any way to do this?

         

digitalv

6:57 pm on Sep 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have a section one one of my sites that has some accounting features that open in a popup (for example, the transaction history for a customer loaded on screen).

Is there any way through Javascript to make those popups close themselves automatically if the user navigates away from the page that opened it?

moltar

7:44 pm on Sep 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try using something like the following:

<body onblur="window.close()">