SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: popup onunload

  1. #1
    SitePoint Zealot
    Join Date
    Jan 2000
    Location
    CT
    Posts
    160
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Simple question... sorry for my ignorance... what is the the HTML or JavaScript code for a popupwindow onunload?

  2. #2
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Here it is:

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>
    onUnload("window.open('NewWindow','someurl.html')
    [/code]

    Of course this is the simplest solution. The open method of the window object also supports a features list where you can set the size, location and appearance of the window if you desire to.

    ------------------
    Wayne Luke
    WR Moderator
    Internet Media Provider


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
  •