41 users online (1 members and 40 guests)  

Thread: code for popup


  Results 1 to 2 of 2

Related

  1. Replies: 0
  2. Need help with a popup code    Forum: HTML Forum
    Replies: 0
  3. Ignore code and link greeting note code    Forum: HTML Forum
    Replies: 3
  4. popup help    Forum: HTML Forum
    Replies: 3
  5. non popup w/o rebars    Forum: Website Scripts Forum
    Replies: 7
  1. #1
    tobo3000's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2003
    Posts
    1

    code for popup

    hi

    I know how to add a popup to my site via html, but i'm interested in creating a popup that opens AFTER I close the original window. How is this done? Can someone give me the code for this? I want the popup to be in a full sized window just like a normal ie explorer.

    Also, can someone give me a separate code for randomizing the popup window appears after i close my window? Thanks in advance.

  2. #2
    Derek's Avatar
    Be Yourself

    Status
    Offline
    Join Date
    Aug 2001
    Location
    St. George, Utah, USA
    Posts
    466
    I've gotta leave and I don't know randomization off the top of my head in javascript but as for making a pop up after the window closes...
    basically instead of body onload, its body onunload You can use Dave's pop up make code if you want it gives you all the options that I usually don't use.

    Code:
    <body onunload="javascript: popup()">
    
    <script language="javascript">
    <!--
    function popup() {
    window.open('blah.html','newwindow','height=300,width=300')
    }
    -->
    </script>



Tags for this Thread