|
|
|
|
![]() ![]() |
Aug 8 2007, 05:17 AM
Post
#1
|
|
|
Newbie [Level 1] ![]() Group: Members Posts: 11 Joined: 23-April 07 Member No.: 42,075 |
I am trying to make a menu for my site.
I made an HTML page with the text/links of the menu, then I embedded that page in all the main "content" pages using an iframe. The problem is that whenever I click the links in the menu they open INSIDE of the iframe instead of switching the whole browser to the page the link is directed to. I hope I'm not TOO hard to understand. Oh, and on this page it has the perfect example of what I want. http://www.w3schools.com/tags/tag_iframe.asp See how when you click on one of the links in the example frame, the whole page changes to that link. |
|
|
|
Aug 8 2007, 08:47 AM
Post
#2
|
|
|
Ephesians 6:10-17 ![]() Group: [MODERATOR] Posts: 1,893 Joined: 22-June 05 From: The World of Gentoo Member No.: 8,528 ![]() |
The reason why they load in the iframe rather than the parent page is because you did not specify the target for the links in the iframe. You must give the target attribute either _top or _parent as its value.
Example: HTML <a href="#" target="_top">Link</a>
|
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 6th September 2008 - 06:48 PM |