Randy Webb <hi************@aol.com> writes:
I agree with everything else, but there's just one thing I have to
comment on :)
opener.reload(true);
window.opener.reload(true);
That shouln't be necessary. Especially in the global scope, where this
code is executed, adding one level of indirection to the access of a
global variable adds nothing except overhead.
window.close();
The window.close() will only work in certain browsers, and only when
the page was opened via Javascript. Otherwise, you get a confirmation
telling you that script is trying to close the window.
But if "opener" is defined, then the page is most likely opened via
Javascript. If it isn't defined, then the previous line would error.
/L
--
Lasse Reichstein Nielsen -
lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'