![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I fear this may be a FAQ - in which case my apologies - but I've failed to track the answer down. I want to close a window from another window it opened. I assumed that this.window.opener.close(); would work, and it does work with my Netscape 6; but my IE 6 gives me an error-message, "this.window.opener is null or not an object". Is there some code which will work with both browsers? |
#3
| |||
| |||
|
|
Geoff Wilkins wrote: I fear this may be a FAQ - in which case my apologies - but I've failed to track the answer down. I want to close a window from another window it opened. I assumed that this.window.opener.close(); would work, and it does work with my Netscape 6; but my IE 6 gives me an error-message, "this.window.opener is null or not an object". Is there some code which will work with both browsers? This works in my IE6 Netscape7: window.opener.opener = top; window.opener.close() Found here; http://www.quirksmode.org/js/croswin.html Mike |
![]() |
| Thread Tools | |
| Display Modes | |
| |