| | |
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: 507
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.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 |
Tag cloud for JavaScript / DHTML / AJAX
ajax ajaxexample ajaxjspservlets array autoplay blackjack browser captcha captchaformproblem cart child class close codes date debugger dependent developer disablefirebug dom editor element embed engine enter events explorer ext file firefox flash focus form forms frameworks game gears getselection google gxt hiddenvalue highlightedword hint html ie7 ie8 iframe java javascript javascripthelp2020 jquery jsf jsp jump libcurl maps marquee masterpage math media menu object onerror onmouseoutdivproblem onreadystatechange parent passing paypal pdf php player position post programming prototype rated redirect safari scale scriptlets scroll search security size software solutions sources star stars stretch synchronous toggle tweet unicode variables web webkit webservice window \n





