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

Frames!? 1

Status
Not open for further replies.

PS1983

Technical User
Nov 6, 2001
83
AT
Hi there!
I have a real nebie problem...

My Site consists of some frames...

frame 1 html site with a picture in it...
frame 2 html site with 2 links that should start the main page....

now when a link is clicked, only frame 2 changes
but i want the whole site to change

--> frame 1 and frame 2 should be replaced with my main page

plz help its pretty urgent

thx

regards steve
 
On your links, you need to specify target="_top". This will open any links in the whole window.
 
As far as I understand, you want to replace the whole frameset with a new page. If yes, this is how you can do it:
<a href=&quot;#&quot; onclick=&quot;top.location.href='mainpage.html'&quot;>main page</a>
 
THX a lot staraway, works.

thx madhouse for the answer but i tried it before but it did't work...

have a nice day

and thanks again for the instant answers


bye

steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top