SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: Closing window using javascript?
Hybrid View
-
May 18, 2007, 02:01 #1
Closing window using javascript?
Hi friends,
i have a problem with window.close. i want to close a window while clicking
a button. i have written code for closing the window. it is working perfectly in
pop up windows.
i want to run this script in parent window. i.e i want to close the window while clicking a button.
it is working in IE and showing a warning. but not working in firefox.
can any one tell me an alternative solution
thanks,
codlib
<snip>Last edited by Jelena; May 18, 2007 at 02:51. Reason: no self-promo urls in posts please
-
May 18, 2007, 06:18 #2
- Join Date
- Jan 2005
- Location
- Too far up north
- Posts
- 1,566
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
This is not really possible (...), you can only close windows that you yourself opened via script. Firefox does actually give you a warning, check the Error Console.
Bookmarks