Forums » .NET » ASP.NET »

Window.close()-Not working in Firefox


Posted Date: 13 Feb 2009      Posted By:: Annapoorani     Member Level: Bronze    Member Rank: 0     Points: 1   Responses: 1



how to close a window using javascript in Firefox browser



Responses

#346895    Author: Jai Ganesh      Member Level: Gold      Member Rank: 0     Date: 13/Feb/2009   Rating: 2 out of 52 out of 5     Points: 3

Hi poorani,

use the following code instead of "window.close();"

function winClose(){ window.top.opener = null; window.close(); }

or

function closeWindow() { window.open('','_parent',''); window.close(); }

if it doesn't works

please set your firefox browser:

1.input "about:config " to your firefox address bar and enter;

2.make sure your "dom.allow_scripts_to_close_windows" is true

Regards,
jai.G



 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Next : margin between controls
Previous : Need a code for Paging & Sorting
Return to Discussion Forum
Post New Message
Category:

Related Messages
Active Members
TodayLast 7 Daysmore...

Awards & Gifts
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2012 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.