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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

frame targeting

Status
Not open for further replies.

Oxymoron

Technical User
Dec 17, 2000
168
GB
hi
I've been making a websitem, and I have a small form inputbox, which people can use. Anyway, it's written in VBScript, and I have this code!

If search="joe" then
location.href="joe_search.htm"
End If etc

Anmyway, my problem is that my site is made up of Frames, so the web page that is loaded, is loaded within the page the inputbox is!
Which is the navigation frame!

What I wanrt to know is, does anyone know how I could make the resultant destination page load (target) the other frame! I know how to target in HTML, but this is is done within the <script> tags.
Please help!
JOE!!!!
 
You must name your frame that you wish to change contentframe in the frameset, then use:

If search=&quot;joe&quot; then
parent.contentframe.location.href=&quot;joe_search.htm&quot;
End If etc
jared@aauser.com
 
Another way is to specify a base target for links in your navigational template. Since it is navigation, the target frame will always be the other frame I presume. Following code will do then:

<base target=&quot;contentframe&quot;>

<script language=&quot;VBScript&quot;>
If search=&quot;joe&quot; then
location.href=&quot;joe_search.htm&quot;
End If
</script> <webguru>iqof188</webguru>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top