window.close() problems

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Feb 2008
Posts: 12
Reputation: web_lock is an unknown quantity at this point 
Solved Threads: 1
web_lock web_lock is offline Offline
Newbie Poster

window.close() problems

 
0
  #1
Feb 14th, 2008
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
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1.  
  2. MyWindow = window.open('','_parent','');
  3.  
  4.  
  5. MyWindow.close();
web_lock
--------------------------------------------------------------------------------------
God created the world out of atoms, I intend on creating mine out of 1's and 0's
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 508
Reputation: techniner is an unknown quantity at this point 
Solved Threads: 19
techniner techniner is offline Offline
Posting Pro

Re: window.close() problems

 
0
  #2
Feb 14th, 2008
Funny I just posted similar code in another post:

Massage as needed:

JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. //Response.Write("<script>javascript:var w = window.open('clickonce.application','_blank');
  2. w.opener=null;
  3. w.open('','_self');
  4. w.close();
  5. window.open('','_self');
  6. window.opener=null;
  7. window.close();</script>");
  8.  
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 12
Reputation: web_lock is an unknown quantity at this point 
Solved Threads: 1
web_lock web_lock is offline Offline
Newbie Poster

Re: window.close() problems

 
0
  #3
Feb 15th, 2008
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
web_lock
--------------------------------------------------------------------------------------
God created the world out of atoms, I intend on creating mine out of 1's and 0's
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC