[thelist] javascript: closing a window opened from a previous page

Michael Harrington mike0351 at bellsouth.net
Fri Apr 30 21:13:19 CDT 2004


Subject: Re: [thelist] javascript: closing a window opened from a previous page

Will "top.window.close()" work?

Example:
<a href="javascript:top.window.close()">Close</a>

Go to http://www.hopehousedaycare.org/photo_album.htm and click on any one of the three links in the
page for a working use of it.

> I'm trying to work my way around something, and I's thinking I could:
>
> 1) Page A's onSubmit opens a window, and submits the form to Page B
> 2) Page B's onLoad closes the window opened by Page A
>
> I'm pretty sure I can't do this, because the object reference is lost
> when Page A unloads, or am I wrong?





More information about the thelist mailing list