Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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?

  • #2
    ess
    ess is offline
    Regular Coder
    Join Date
    Oct 2006
    Location
    United Kingdom
    Posts
    866
    Thanks
    7
    Thanked 30 Times in 29 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •