Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Iframe Menu Question
misterhh
post 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. wink.gif

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.
Go to the top of the page
 
+Quote Post
truefusion
post Aug 8 2007, 08:47 AM
Post #2


Ephesians 6:10-17
Group Icon

Group: [MODERATOR]
Posts: 1,893
Joined: 22-June 05
From: The World of Gentoo
Member No.: 8,528
T17 GFX Crew



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>
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Java Script Drop Down Menu With Css(2)
  2. Disabling Horizontal Scroller In Iframe?(13)
  3. Call Cookie Functions In Iframe(2)
  4. How To Auto Stretch An Iframe?(3)
  5. Flash Menu(3)
  6. How To Build A Pure Css Using Online Tools Tutorial (part 4)(0)
  7. How Do You Make A Dropdown Menu?(13)
  8. Web Page Tree Menu: Style Sheet - Javascript(6)
  9. Need Help With Site(5)
  10. Editing Drop Down Menu In Php(3)
  11. Menu Errors In Internet Explorer(4)
  12. How To Use Html In Flash(1)
  13. Can I Make Dynamic Menu In Php(7)
  14. How To Hide My Documents , Properties Menu And Drives In Windows Xp(0)
  15. Making Dropdown Menu In The Navbar [resolved](1)
  1. How To Add Items To My Computer Right Click Context Menu.(0)
  2. Rolling Menu(2)
  3. How To Show The Menu View In Asp.net?(0)
  4. Content Or Menu First In The Html?(2)
  5. Reducing Windows Vista Start Menu Programs Response Time.(4)
  6. How To Remove All Programs From Start Menu(1)
  7. How To Enable Or Disable Highlight Programs Feature In Start Menu(3)
  8. Speed Up The Start Menu(7)
  9. Creating Navigation For Html Websites(12)
  10. Helpful Registry Edit For Java Programmers(2)
  11. Iframe Src = A Local File In My Computer(6)
  12. Creating A Floating Javascript Docking Menu(1)
  13. C# Enable Winform Plugin(0)


 



- Lo-Fi Version Time is now: 6th September 2008 - 06:48 PM