Forum Moderators: open

Message Too Old, No Replies

exit

javascript

         

masterjr

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.

tedster

10:13 am on Jan 7, 2002 (gmt 0)

WebmasterWorld Senior Member 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.