SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict gthorley's Avatar
    Join Date
    Oct 2000
    Location
    Canada
    Posts
    392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am looking for info on what to use to allow a popup window to be closed using any type of browser so that it just closes as if the x close button was used.
    I tried javascript:self.close () in NS4.7 and IE5 and a box popped up to confirm. I don't want any confirm. What is the way to code this?

  2. #2
    SitePoint Addict sstaubin01's Avatar
    Join Date
    Nov 2000
    Location
    Ont, Canada
    Posts
    234
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think javascript:window.close() is what your looking for.

    By the way, I like your picture.
    Last edited by sstaubin01; Feb 21, 2001 at 16:02.

  3. #3
    SitePoint Zealot cckrocks's Avatar
    Join Date
    Nov 2000
    Location
    A home in the hills where the grass grows green an
    Posts
    183
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You will always get a prompt unless the window is a child window (created by another window and not opened by a url from the user.)
    Think beyond what is common...
    www.jaggedknife.com
    www.fusion-in.com

  4. #4
    Say WHA?! goober's Avatar
    Join Date
    Sep 2000
    Location
    United States
    Posts
    1,921
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    cckrocks is correct, although I've tried self.close() in a child window and haven't been asked to close. I just tested with IE5.5 . No Message box was to be seen at all..

    Hope this helped.
    Sean Killeen [LinkedIn] [Twitter] [Web]

    Warning: Reality.sys corrupted. Universe halted. Reboot? (Y/N)


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
  •