SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Apr 2005
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    popup when page unloads

    how would i make a pop-up open in the centre of any screen (no matter what size) when a viewer leaves a page.
    do i use <body unLoad>?

    thanks
    munnaz

  2. #2
    SitePoint Enthusiast
    Join Date
    Apr 2005
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sorry i mean 'onUnload'. can i modify
    Code:
    <body onUnload="window.alert('YOUR MESSAE GOES HERE')">
    to make it open a popup
    Last edited by munnaz_2003; Jun 15, 2006 at 06:02. Reason: www.sendfreesms.com.au

  3. #3
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Ask in the JavaScript forum.


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
  •