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

Jump Menu in top frame change URL in main frame

Status
Not open for further replies.

TJARON

Technical User
Sep 18, 2001
60
0
0
US
Hey everyone,
Is it possible to have a jump menu in a top frame where the choices change the URL in the main frame (do not pop up seperately)? I'd appreciate any help with this.
Thanks,
Tim
 
Hi Tim,

You have to set the target in your link.



<a href=&quot;yourchoice.htm&quot; target=&quot;MainFrameName&quot;>choice1</a>

If you have a lot of links that must be shown in the main frame you can set the &quot;base target&quot; in the <head>:

<head>
<base target = &quot;MainFrameName&quot;>
</head>

now you only have to write :
<a href=&quot;yourchoice.htm&quot;>choice1</a>
to show this link in the frame &quot;MainFrameName&quot;

In case you want some special links to other frames, you specify it in your link. The target in your link will overwrite the base target.

In case you didn't know:
To show a link in a new browser, use target=&quot;_blank&quot;

Hope this helps,
Erik

<!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (!! Many Happy Returns !! -->
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top