DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   JavaScript / DHTML / AJAX (http://www.daniweb.com/forums/forum117.html)
-   -   window.close() problems (http://www.daniweb.com/forums/thread109110.html)

web_lock Feb 14th, 2008 5:12 am
window.close() problems
 
I have got a page which has a link pertaining to a close window function.

The window.close() function works perfectly fine in the case of IE based browsers , however it fails to respond on a Mozilla browser(working on tab panes) . I have tried to make use of self.close(), document.close , but there has been no progress.

I have also tried the following code , but have not been successful

  MyWindow = window.open('','_parent','');


 MyWindow.close();

techniner Feb 14th, 2008 12:14 pm
Re: window.close() problems
 
Funny I just posted similar code in another post:

Massage as needed:

//Response.Write("<script>javascript:var w = window.open('clickonce.application','_blank');
w.opener=null;
w.open('','_self');
w.close();
window.open('','_self');
window.opener=null;
window.close();</script>");

web_lock Feb 15th, 2008 6:14 am
Re: window.close() problems
 
I tried your code , But its not working in Mozilla!
I use Mozilla 2.0.0.12
It works perfectly fine in IE , nut I need it to work in both browsers


All times are GMT -4. The time now is 1:40 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC