SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
Thread: Close window button
Hybrid View
-
Feb 21, 2001, 14:43 #1
- 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?
-
Feb 21, 2001, 15:59 #2
- 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.
Brian Smith
www.mylittlechampion.com
-
Feb 22, 2001, 05:13 #3
- 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.)
-
Feb 23, 2001, 18:36 #4
Bookmarks