1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to redirect to new tab?

Discussion in 'Web Design' started by costolleumus, Nov 23, 2012.

  1. costolleumus

    costolleumus Newbie

    Joined:
    Feb 17, 2011
    Messages:
    46
    Likes Received:
    9
    Here what I want:
    when someone visit my site (mysite)in new tab open another site (redirect site).
    Is that possible?
    thank you
     
  2. suga051982

    suga051982 Regular Member

    Joined:
    Jul 22, 2009
    Messages:
    203
    Likes Received:
    29
    Occupation:
    marketing, virtual assistant
    Location:
    Here
    Let me make sure that I understand your question, do you want another site to load in a new window as soon as your site loads OR do you want the visitor to click on something on your site and then it loads another window with a different site?

    Either way both are possible, I just need to know which you are looking for so I can give you the correct code.

    HTH
     
  3. costolleumus

    costolleumus Newbie

    Joined:
    Feb 17, 2011
    Messages:
    46
    Likes Received:
    9
    First one. My site + another site in new tab.
     
  4. olystyle

    olystyle Regular Member

    Joined:
    Jan 6, 2012
    Messages:
    238
    Likes Received:
    103
    Hi Costolleumus

    placing this codesnippet within your head tags will result in opening every link in a new tab
    Code:
    <base target="_blank" />
    otherwise you could just specify which link has to open in a new tab
    Code:
    <a href="yourlink" target="_blank">Anchor text</a>
    hope I was able to help you
     
    Last edited: Nov 24, 2012
  5. costolleumus

    costolleumus Newbie

    Joined:
    Feb 17, 2011
    Messages:
    46
    Likes Received:
    9
    Thank you, but this work when visitor click on some link first. I need to link open automaticly in a new tab.
     
  6. sincos

    sincos Newbie

    Joined:
    Sep 28, 2010
    Messages:
    5
    Likes Received:
    0
    Occupation:
    programmer
    Location:
    us
    Home Page:
    You can not...................

    security of browser blocked.
     
  7. eomedia

    eomedia Newbie

    Joined:
    Nov 1, 2012
    Messages:
    12
    Likes Received:
    3
    End User controls via their own browser how new windows/tabs are opened. You cannot control anything other than the target="blank" as indicated above.