Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Frames and Links to external sites

  • 29-11-2004 07:44PM
    #1
    Registered Users, Registered Users 2 Posts: 8,503 ✭✭✭


    I have to write a poxy webpage for a college assingment and I'm running into a bit of bother.
    I have 2 frames; a navigation bar and a main page. There are two links in the nav bar that link to external websites. How do I set it so that when I click them it doesn't open the new site inside my existing frames?

    <html>
    <body bgcolor=#1D5DA7 link=#E8BA2B alink=#FFFFFF vlink=E8BA2B>
    <font face=tahoma color=#FFFFFF>
    <base target=main>
    

    Obviously it's the base target=main line that is causing it, but how do I go about altering it for those two links?

    Thanks in advance


Comments

  • Closed Accounts Posts: 2,525 ✭✭✭JustHalf


    First of all, it's a really bad idea to put external links in your primary navigation. The primary navigation is a group... site visitors will assume, quite reasonably, that the primary navigation goes to different pages or sections on your site.

    Instead, they will be brought to a completely new site. You don't want to give your users that sort of surprise.

    To answer your original question, the code is:

    <a href="url" target="_top">Link text</a>


  • Registered Users, Registered Users 2 Posts: 8,503 ✭✭✭Makaveli


    Thanks.
    Yeah I know it is, but it's doesn't really matter for this CA.
    I altered it anyway, so that the pages opened in a new window.


Advertisement