Forum Moderators: open

Message Too Old, No Replies

a basic problem pls help

new window

         

mlalex

5:59 pm on Apr 24, 2005 (gmt 0)

10+ Year Member



Is it possible to open a link in a particular frame in a new window?

kaled

7:51 pm on Apr 24, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Pass the url of the required page in the query part of the frameset url and arrange for the frameset to load the page into the correct frame.

Thus the link would something like this

<a href="frames.html?page.html">click here</a>

In the frameset you will need something like
<script>
targetframe.location.replace(location.query);
</script>

where targetframe is the name of the frame in which the page must be loaded.

Kaled.

Bernard Marx

10:46 pm on Apr 24, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



targetframe.location.replace( location.search.substring(1) );

?

mlalex

7:19 am on Apr 25, 2005 (gmt 0)

10+ Year Member



Thanks guy. Problem solved. thank you once again.