SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict
    Join Date
    Aug 2000
    Posts
    258
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh for god sakes.... It's late and I'm obviously tired...

    I can't find (in all my books) the command to close the window a button (or hyperlink) is in

    For instance in a pop-up window I wanna have a "Yes I'll Subscribe" hyperlink and a "No Thanks" hyperlink. "No Thanks" should close the window.

    A very groggy "thanks" ahead of time....

  2. #2
    SitePoint Addict
    Join Date
    Aug 2000
    Posts
    248
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <a href="javascript:onClick=window.close()">No Thanks</a>


    Good Luck! :)

  3. #3
    SitePoint Guru Vincent Puglia's Avatar
    Join Date
    Feb 2000
    Location
    where the World once stood
    Posts
    700
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    you can also use: self.close()


    Vinny
    Where the World Once Stood
    the blades of grass
    cut me still

  4. #4
    SitePoint Addict
    Join Date
    Aug 2000
    Posts
    258
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you!
    Total Life Success - Don't give in. Succeed. (tm)

    Total Life Success Forums - the Web's Leading
    Success Community™


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
  •