SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Pop Up Window

  1. #1
    SitePoint Member
    Join Date
    Sep 2002
    Location
    digital world
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Pop Up Window

    Anyone know a code, that makes a window pop up when a page is accessed?
    -Courtesy of Kaze

  2. #2
    Bimbo With A Brain! silver trophy Saz's Avatar
    Join Date
    Mar 2001
    Location
    Kent, United Kingdom
    Posts
    5,275
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here's a simple one.

    Insert this inbetween the HEAD tags of your page:
    Code:
    <script>
    function winopen(){
      window.open("your_popup_page.html", "WINDOW NAME", "toolbar=yes,location=yes,directories=no,status=no, menubar=yes,scrollbars=yes,resizable=no,copyhistory=yes,width=200,height=260")
    }
    </script>
    Then put this inside the BODY tags:
    Code:
    <body onLoad="winopen()">
    Saz: Naturally Blonde, Naturally Dizzy!
    No longer Editor of the Community Crier.

    Don't mind me, I'm having a BLONDE moment!

  3. #3
    SitePoint Member
    Join Date
    Sep 2002
    Location
    digital world
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Saz, and by the way, your site is very nice.
    -Courtesy of Kaze

  4. #4
    SitePoint Member
    Join Date
    Sep 2002
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Plug in

    If by any chance you are designing in Dreamweaver, there's a cool plug-in for this. Go the to Macromedia downloads area and get the "Advanced Open Windows" plug-in.


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
  •