SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Sep 2001
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    exit pop unders.....

    i'm trying to make a page that when you exit a page,a window would pop under....not just pop up.
    Lets say someone visits xyz.com....and they click on a link and it leaves the site....how would i make a pop under for the page.
    signature

  2. #2
    SitePoint Zealot
    Join Date
    Dec 1999
    Posts
    137
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <html>
    <head>
    <script>
    function popunder(){
    var myWindow = window.open("page","nameofwindow","height=300,width=300");
    myWindow.blur();
    }
    </script>
    </head>
    <body onunload="popunder()">
    </body>
    </html>

    Hope that helps
    Last edited by PGA; Sep 8, 2001 at 10:47.

  3. #3
    SitePoint Member
    Join Date
    Sep 2001
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks for the code......but the window size doesnt seem to work....i tried changing it but when ever the pop under opens....it opened in the same size as the window that was closed.
    signature

  4. #4
    SitePoint Zealot
    Join Date
    Dec 1999
    Posts
    137
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry I delayed to answer. Width,height,menubar,scrollbars,toolbar,etc... should be between quotes. I just fixed the code of my last post. Now it should work.


Bookmarks

Posting Permissions

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