Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

navigator.getWindowById(name)

Status
Not open for further replies.

Buraje

Technical User
Mar 19, 2001
14
DE
No, I have not assumed that this might work,
but actually it's what I need.

The script below exists, I can not take any influence
on it, because it's PHP - generated and put into
my HTML - Source, after the upload to the server.

Code:
<script language=&quot;JavaScript&quot;>
window.open('page.html','nameofwindow','width=500,height=500');
</script>

But it is put above all my code,
even above the &quot;html&quot; - Tag.

So I can write a script that is executed
after the above one -

What I'm trying to do is getting the window - handle
by the name.

Is there an array of open windows
similar to for instance &quot;
Code:
document.forms[]
&quot;?
Something like this made-up allopenwindows - object:

Code:
mywindowhandle = navigator.allopenwindows['finestra']);
The use of all this is to load another
document into that open window:

Code:
mywindowhandle.location = 'anotherpage.html';

I searched a JavaScript reference but didn't find anything.

Buraje

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top