Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-07-2006, 08:51 PM   PM User | #1
jomath
New to the CF scene

 
Join Date: Dec 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
jomath is an unknown quantity at this point
Close pop-under on site exit

I have a pop-under that plays continuous music while a visitor navigates throughout the site (as insisted on by the client). The client requested that the pop-under, and therefore the music, closes when a visitor navigates outside the site. Can anyone help with this?
jomath is offline   Reply With Quote
Old 12-08-2006, 12:08 AM   PM User | #2
ess
Regular Coder

 
Join Date: Oct 2006
Location: United Kingdom
Posts: 865
Thanks: 7
Thanked 29 Times in 28 Posts
ess will become famous soon enough
try adding this to your <body> tag

Code:
<body onunload="javascript: function_to_close();">
Where function_to_close...should take care of closing the popup.

good luck.
Ess
ess is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:22 PM.


Advertisement
Log in to turn off these ads.