Welcome to WebmasterWorld Guest from 50.17.117.221

Forum Moderators: open

Message Too Old, No Replies

exit

javascript

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

New User

10+ Year Member

joined:Oct 22, 2001
posts:14
votes: 0


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)

Senior Member

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

joined:May 26, 2000
posts:37301
votes: 0


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.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members