Jul 25, 2008

Iframe Menu Question

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > HTML, XML etc..

free web hosting

Iframe Menu Question

misterhh
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.

Reply

truefusion
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>

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : iframe menu

  1. Disabling Horizontal Scroller In Iframe? - How can I do that? (13)
    Is there a way to disable the horizontal scroller in iframes? If yes, how can I do it?...
  2. Iframe Src = A Local File In My Computer - (6)
  3. Menu Errors In Internet Explorer - (4)
    I am not sure if this is the correct section, but this is related to HTML. I have some menus at the
    top of my forum, which work perfectly in Firefox. But my members started complaining that they were
    not working correctly, and when I tested it in Internet Explorer, I found that only two of the menus
    show up, and the others show up as plain text below. Here is a screenshot of what the menus look
    like in the two browsers: I have thought of something though. The HTML i used for my menus was
    the only code I could find for to make some menus. But I noticed that this forum...
  4. Help With Nav Menu Error - (5)
    my webpage http://switchfoot.ifastnet.com/index.php has something wrong with it, as soon as you
    load the page the menu appears on the right then goes to it's spot on the left, any help? As
    Soon As Poosible would be nice but there is no rush really.... (only hosting it there for now, when
    i finish the website it will be moved to trap) Title needs to be more discriptive then just
    help, so as to get a better answer from the members. ...
  5. Menu Bar Aligning - (1)
    I am creating a website for an outreach service. I am running into a reoccuring problem. I can get
    everything to center correctly while I am viewing it under 1024x768. When I view it under 800x600
    the menu itself pulls to the right. If I take away the absolute value it puts the menu on the left
    margin. You can view the source by going to this website: http://www.faithcity.org/test.html . Any
    advice would be greatly appreciated....
  6. Image Roll Over Drop Down Menu Help - (2)
    Ok I been searching for days now on a half way descent tutorial on how to do a Image Roll Over Drop
    Down Menu in CSS without the use of javascript, I been seeing alot of the suckerfish set up but of
    course no one goes in to detail on how to set up the image rollover version of it. Plus I don't
    want the dhtml or the javascript setup just good ole pure css. Also I need ot be able to control
    multiple menus in one script as well. CODE <!DOCTYPE html PUBLIC "-//W3C//DTD
    XHTML 1.0 Strict//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict...
  7. Dhtml Menu That Reads A Database - (7)
    I wanted to make a DHTML menu that read off a database, so it woud work with a menu system in
    PHP-nuke, called somarre patreballe, or something like that. Anybody can help me? I don't know
    much of anything about DHTML....
  8. Drop Down Menu - (1)
    This little code will disable the select option in a drop down menu, sometimes people like to add
    titles to their menu. insted of Pick One Choise 1 try Choise 1 with
    optgroup users can't select Pick One, it is just use as a title...



Looking for iframe, menu

Searching Video's for iframe, menu
advertisement



Iframe Menu Question



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE