Windows!Windows!Windows! - Opening & Closing Browser Windows
Hello,
I have opened a new browser window called 'map3' using -
onclick="window.open('new_file.htm','map3',config='height=350,width=450')"
In my new window (in the file 'new_file.htm') I want to put another onclick whick loads up a new .html file in the original browser window AND closes the new window map3.
Thus giving me only one window open. Is this possible??
Many thanks
Paul
Anonymous posted this at 02:20 — 26th August 1999.
They have: 5,633 posts
Joined: Jan 1970
To be able to change the location of another window, that window needs a name. As far as I know the only way to give a window a name is to open it yourself (correct me if I'm wrong) thus it wouldnt be possible to change the location of the initial window.
If the first window has a name this code should work:
onClick="
oldWindow.location.href="aLocation";
self.close();
"
Hope this helps,
Malte
----------
Malte Ubl - [red]Germany[/red] - http://goKewl.com/
[red]The beats of 1000 hearts inside...[/red] the merciless pulsation... [red]and all I know is I'll be back...[/red] back to trance nation!
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.