Referencing a window

A

Andy Levy

Hi

I know how to open a new window from an html page with javascript.

However once that page is opened ( in my case its like a popup index page ).
I would like to know how to tell the original page to go to a specific page
based on the link pressed on the new popup index page. I cant seem to find
a way to refer to the other window.

Thanks

AL
 
B

Brian Genisio

Andy said:
Hi

I know how to open a new window from an html page with javascript.

However once that page is opened ( in my case its like a popup index page ).
I would like to know how to tell the original page to go to a specific page
based on the link pressed on the new popup index page. I cant seem to find
a way to refer to the other window.

Thanks

AL

window.opener
 
D

DU

Andy said:
Hi

I know how to open a new window from an html page with javascript.

However once that page is opened ( in my case its like a popup index page ).
I would like to know how to tell the original page to go to a specific page
based on the link pressed on the new popup index page. I cant seem to find
a way to refer to the other window.

Thanks

AL

<a href="path/filename.ext" onclick="if(opener) {opener.location.href =
this.href;} return false;" title="Clicking this link will load it in
the main window"> Descriptive text of the link</a>

Not tested.

DU
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top