Discussion Locked

Urgent Browser Question

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hello,

I have a rather urgent question: by clicking on a link to a web page, how can you get two separate web pages to load simultaneously in individual windows? (I have tried using , but this replaces the first pae with the second page, instead of loading both at the same time.) Any help would be deeply appreciated!

8 replies

by galahad04

Thanks for letting me know that JavaScript is required...needed a little more specific answer though.

by ebob

A couple of ways:
In your source page, your link should call a JavaScript function which does these 2 things. First it should open a new "target" and load the required URL into there (see window.open() for details). Secondly it should replace the current window's location with the URL of the page that belongs in this window. (see location.replace(), or is it window.location.replace()?)

Another way is to use a "normal" link in your source page which loads a URL into the current window. In the tag of this new URL's HTML code, use "onLoad(window.open())" to open a new window and load the necessary URL.

by ebob

PS: I don't have my documentation in front of me, but I think you may also be able to use a "target=" argument in tag.

Have a look at your JavaScript documentation for full details.

by rsv

HI,
You can achieve this. As per your question, I understood that you need to open 2 windows apart from the parent window when clicked on a link. There is the code....

click here

This will open 2 windows, abc.htm in one window and xyz.htm in another window.

Hope this solves your problem.
Have a great day.

This discussion is closed to new replies.