Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Javascript OPEN ON EXIT

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

Preferred Member

10+ Year Member

joined:July 22, 2000
votes: 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?
4:35 am on May 12, 2001 (gmt 0)

Senior Member

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

joined:May 26, 2000
votes: 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.


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members