Welcome to WebmasterWorld Guest from 54.166.54.215

Forum Moderators: open

exit

javascript

   
3:49 am on Jan 7, 2002 (gmt 0)

10+ Year Member



hello.
I want to writte a script that open a page when the user close the window.
I've written
<script language="javascript">
if(window.closed)
window.open("exit.html","exit","titlebar=yes");
</script>
and it doesn't work.
When i close the window with"x" nothing hapen.
Please help me.
10:13 am on Jan 7, 2002 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Are you trying to open a new window only when the user totally closes the main window? Or do you want the new window whenever the document in the main window changes.
 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month