Making Links Open in a new tab

by TheBizHelp Banned
9 replies
  • WEB DESIGN
  • |
Hello Folks,

I am creating a sales page which I need the links to the template sample to open in a new tab. Please how do I go about that because it's a little thing that does not require consulting my programmer.

I use Dreamweaver CS4.

Thank you!
#links #making #open #tab
  • Profile picture of the author Nathan Joshua
    Place this code inside the <a> tag in code view.

    Code:
    target="_blank"
    For example:
    Code:
    <a href="template1.html" target="_blank">Click to open template in a new tab</a>
    Hope this helps
    {{ DiscussionBoard.errors[6139866].message }}
  • Profile picture of the author TheBizHelp
    Banned
    Bless your soul Nathan!

    Here's what I'm working with. where do I place the 'target', between 'here' or after it? <a href="/membership_site_manager/index.htm">here</a>

    God bless.
    {{ DiscussionBoard.errors[6139940].message }}
    • Profile picture of the author Nathan Joshua
      Originally Posted by louis kennedy View Post

      Bless your soul Nathan!

      Here's what I'm working with. where do I place the 'target', between 'here' or after it? <a href="/membership_site_manager/index.htm">here</a>

      God bless.
      Here to help


      As long as the target="_blank" is inside the opening tag it will work.

      Code:
       <a href="template1.html" target="_blank">Link</a>
       or
       <a target="_blank" href="template1.html">Link</a>
      Both will work fine.
      {{ DiscussionBoard.errors[6140065].message }}
      • Profile picture of the author pinterest01
        Originally Posted by Nathan Joshua View Post

        Here to help


        As long as the target="_blank" is inside the opening tag it will work.

        Code:
         <a href="template1.html" target="_blank">Link</a>
         or
         <a target="_blank" href="template1.html">Link</a>
        Both will work fine.
        nice tips, but to make ur programmer or someone else more easy reading your code, i prepare to use the first tips, it's a good and valid wwc coding of html
        {{ DiscussionBoard.errors[6142751].message }}
  • Profile picture of the author Istvan Horvath
    Just a note to remind you: anybody with a bit of technical knowledge can (and will) over-ride your code by the options in their browser... In most browsers users can select how to handle this kind of "new page" code; e.g. execute it, make it a tab instead of new window, disregard etc.
    Signature

    {{ DiscussionBoard.errors[6141088].message }}
  • Profile picture of the author TheBizHelp
    Banned
    Thanks Nathan... it really worked.

    Hello Horvath, Thanks for that little information. But is there anyway to lock browsers from doing that?
    {{ DiscussionBoard.errors[6141671].message }}
    • Profile picture of the author Istvan Horvath
      Originally Posted by louis kennedy View Post

      But is there anyway to lock browsers from doing that?
      Thanks God, there isn't. I'd hate, to be honest, if a wannabe webmaster can dictate how MY browser on MY computer should behave on his site...

      I am sure, if you were on the "receiving end" of this thing (i.e. having your browser opening up a zillion new windows without your permission!) you'd think twice about it...
      Signature

      {{ DiscussionBoard.errors[6141840].message }}
  • Profile picture of the author Alice R
    overclock.net/t/442649/how-to-make-hyperlink-open-a-new-tab

    Should do the trick mate.
    {{ DiscussionBoard.errors[6154540].message }}
  • Profile picture of the author hoffman
    This really helped my problem. Informative,nonetheless. Would share this info for sure. Thanks.
    {{ DiscussionBoard.errors[6156555].message }}

Trending Topics