Results 1 to 4 of 4

Thread: May I know how can I make a pop up window with a close button ?

  1. #1
    Member
    Join Date
    Jul 2000
    Location
    Vancouver, BC, Canada
    Posts
    403

    May I know how can I make a pop up window with a close button ?

    I am making on my home page right now. Assume If I click on a hyperlink of my friend's profile), now it will open a new windows of my friend's profile. (it is not a pop up windows, it is just a pop up new page)

    My question is what should I add to my html coding, in order to have a "CLOSE" button somewhere at teh buttom of my pop up windows, so the visitor can simply click on that CLOSE button to close and get rid of that opop up windows.

    Please advise and appreciate for your great help in advance.

  2. #2
    Member
    Join Date
    Jul 2000
    Location
    Vancouver, BC, Canada
    Posts
    403
    Hey Illegal Alien and rh71,

    Thanks for your great links.


    Have a nice weekend , dude !

  3. #3
    Member
    Join Date
    Oct 2000
    Location
    England
    Posts
    75
    This site has the code for the pop up window and MAYBE the close button as well, enjoy www.Dynamicdrive.com

  4. #4
    Senior Member rh71's Avatar
    Join Date
    Oct 1999
    Posts
    782
    Always go here for Javascript help... it'll save you lots of time.
    http://developer.irt.org/script/script.htm

    In short, just use the following in that new window as a link:
    Code:
    <A HREF="javascript:window.close()">Close Window</A>
    [This message has been edited by rh71 (edited 05-04-2001).]

Posting Permissions

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