dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: popup windows when a user leaves the URL

  1. #1
    Join Date
    Dec 2003
    Posts
    1

    popup windows when a user leaves the URL

    I am in need of assistance in making a popup open when the user leaves the Website....Not just when they leave a page or click on a link...It is a shopping cart and the popup is for...to find out what product if any they could not find....Help please.

  2. #2
    Join Date
    Sep 2003
    Location
    Portsmouth, UK Occupation: Web Developer
    Posts
    2,602
    <head>
    <script type="text/javascript">
    function popup()
    {
    NewWindow=window.open('YOURFILE.htm', '',
    'width=300,height=300');
    }
    </script>
    </head>

    <body onunload="popup();">

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles