SitePoint Sponsor |
|
User Tag List
Results 1 to 7 of 7
-
Apr 11, 2007, 07:40 #1
- Join Date
- Apr 2001
- Location
- home
- Posts
- 132
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Window Close Function in Firefox 2.0.x?
Does anyone know of a chunk of JavaScript that will succesfully close a Firefox 2.0.x window?
I'm trying to set up a close window link in a web page and everything I've found related to Firefox was for older versions of Firefox, but there isn't anything that seems to work in Firefox 2.0.x.
-
Apr 11, 2007, 08:17 #2
- Join Date
- May 2006
- Location
- Aurora, Illinois
- Posts
- 15,476
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I'm not a JavaScript expert, so I may not be of much use to you, but can you post the code you're using?
Save the Internet - Use Opera | May my mother rest in peace: 1943-2009
Dan Schulz - Design Team Advisor | Follow me on Twitter
SitePoint References: HTML CSS JavaScript | Become A Guru
WordPress SEO Checklist | What WordPress Plugins Do You Use?
Web Standards Curriculum | Image Free Equal Height Columns
-
Apr 11, 2007, 08:33 #3
i have also noticed this doesnt work in firefox, works fine in IE though
-
Apr 11, 2007, 10:15 #4
- Join Date
- Jan 2005
- Location
- Too far up north
- Posts
- 1,566
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
window.close() works fine. Please post code that proves the opposite.
-
Apr 11, 2007, 18:08 #5
- Join Date
- Nov 2005
- Posts
- 113
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
self.close() also works
-
Apr 11, 2007, 19:51 #6
- Join Date
- Apr 2007
- Posts
- 813
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
how if there are multiple tabs opened? will that close the all the tabs?
-
Apr 11, 2007, 20:09 #7
- Join Date
- Nov 2005
- Posts
- 113
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Bookmarks