[Javascript] Detecting existence of windows

Mikael Lindström mikael.lindstrom at nipsoft.se
Thu Nov 8 02:25:17 CST 2001


Aren't you required to keep parentheses in

window.opener.closed() ?

Could it be a fact that IE5.5 manages the missing parentheses but IE5.01
don't ?

And you can use

window.opener.reload()

instead of

window.opener.location = window.opener.location + '';

regards

/Mikael
> -----Original Message-----
> From: javascript-admin at LaTech.edu
> [mailto:javascript-admin at LaTech.edu]On
> Behalf Of Mark Christie
> Sent: Wednesday, November 07, 2001 11:39 PM
> To: 'javascript at LaTech.edu'
> Subject: [Javascript] Detecting existence of windows
>
>
> Dear List:
>    I am having a bit of a cross-browser difficulty in the following
> function:
>
> function updateconfirm() {
> 	alert('Your employee information has been updated!');
> 	window.close();
> 	if(!window.opener.closed) {
> 		window.opener.location = window.opener.location + '';
> 		window.opener.focus();
> 	}
>
> }
>
> This works wonderfully in IE5.5, but IE5.01 does not seem to like the
> .closed property.
>
> Basically, I need to check to see if the opener window is
> still open, and,
> if it is, refresh it.
>
> Am I missing something obvious here?
>
> Regards,
>    -Mark C.
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> http://www.LaTech.edu/mailman/listinfo/javascript
>




More information about the Javascript mailing list