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

JavaScript and AJAX Forum

    
Javascript OPEN ON EXIT
lizzie




msg:1475285
 4:09 pm on May 11, 2001 (gmt 0)

I want to use a javascript that opens a new page
when someone exits my page.
Does anyone have one they can share with me?
Thanks!

 

tedster




msg:1475286
 4:35 am on May 12, 2001 (gmt 0)

lizzie, use the onUnload event handler, which must be placed in either the BODY tag or the FRAMESET tag.

<BODY onUnload="window.open(url,windowname,features)">

Use single quotes around your url, windowname and whatever features list (if any) you declare for the new window.

Here's a page of FAQ's [developer.irt.org] all about javascript windows. Lot's of additional info here.

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