homepage Welcome to WebmasterWorld Guest from 54.197.183.230
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
exit
javascript
masterjr

10+ Year Member



 
Msg#: 29 posted 3:49 am on Jan 7, 2002 (gmt 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.

 

tedster

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



 
Msg#: 29 posted 10:13 am on Jan 7, 2002 (gmt 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved