| | |
JS window close help
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Apr 2008
Posts: 495
Reputation:
Solved Threads: 0
Hi,
This code doesn't work in Firefox? Is there any other way of closing window?
Thanks
This code doesn't work in Firefox? Is there any other way of closing window?
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
<A href="javascript: self.close ()">Close this Window</A>
Thanks
0
#2 Oct 7th, 2009
Javascript can only close windows that were opened using Javascript in FF without modifying the config. To change your config to allow this:
go to "about:config"
and set the value of "dom.allow_scripts_to_close_windows" to true.
To make your windows close in FF (and IE7) browsers without modifying the config here is a nice workaround
go to "about:config"
and set the value of "dom.allow_scripts_to_close_windows" to true.
To make your windows close in FF (and IE7) browsers without modifying the config here is a nice workaround
www.beeerlover.org <- my hobby with 15K+ Pink Floyd Images
www.bestbridalprices.com <- my job with 15K+ Wedding Dresses
www.bestbridalprices.com <- my job with 15K+ Wedding Dresses
0
#4 Oct 7th, 2009
html Syntax (Toggle Plain Text)
<a href="javascript:window.close();">Close Window</a>
![]() |
Similar Threads
- javscript in Master page (ASP.NET)
- Window close event in safari (JSP)
- window.close() problems (JavaScript / DHTML / AJAX)
- Delay Window Close (JavaScript / DHTML / AJAX)
- Problem closing Browser with Window.Close (ASP.NET)
- IE6 not permitting window.close() or window.focus() - any ideas (HTML and CSS)
- window.close() not working in flash MX??? (Graphics and Multimedia)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: how do i redirect two pages back with javascript(not a button a redirect)
- Next Thread: AJAX Calender
| Thread Tools | Search this Thread |
acid2 ajax ajaxexample ajaxjspservlets array beta browser captchaformproblem cart checkbox child class close codes column css date debugger decimal dependent design disablefirebug dom download editor element embed engine enter error events explorer ext file firefox focus form forms frameworks getselection google gwt gxt hiddenvalue highlightedword hint html ie7 ie8 iframe index internet java javascript javascripthelp2020 jquery jsf jsfile jsp jump libcurl listbox maps masterpage math media menu mp4 object onmouseoutdivproblem onmouseover onreadystatechange parent paypal pdf php position post problem programming prototype redirect runtime safari scale scriptlets scroll search security select shopping size software toggle unicode w3c web windowofwords wysiwyg \n





