| | |
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: 491
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 |
ajax ajaxcode ajaxexample ajaxhelp ajaxjspservlets animate array automatically browser bug calendar captchaformproblem cart checkbox child close codes createrange() cursor date debugger dependent disablefirebug dom dropdown editor element embed engine enter events explorer ext file firefox form forms frameworks getselection google gxt hiddenvalue highlightedword hint html htmlform ie7 ie8 iframe images internet java javascript javascripthelp2020 jawascriptruntimeerror jquery jsf jsfile jsp jump libcurl maps masterpage math media microsoft object onmouseoutdivproblem onreadystatechange parent paypal pdf php player position post programming progressbar prototype redirect regex runtime safari scale scriptlets scroll search security shopping size software sql text textarea unicode web website windowsxp wysiwyg \n





