Open link in new tab

  • 1
  • Question
  • Updated 8 years ago
  • Answered
What is the html data fot this command?
Photo of Kent T Carter

Kent T Carter

  • 230 Posts
  • 3 Reply Likes
  • Gettin there!

Posted 9 years ago

  • 1
Photo of Peter

Peter

  • 2569 Posts
  • 113 Reply Likes
Hi Kent,

This will work but not necessarily open a new tab it may open a new window. The reason being is that it's a deprecated HTML function and depends on the way the user has set up their browser

<!--
<a href="url" target="_blank"></a>

-->
Photo of Boomer

Boomer, Champion

  • 2055 Posts
  • 84 Reply Likes
It is like this Kent!

<a href="YOURLINK" target="_blank">NEW TAB<a>
Photo of Kent T Carter

Kent T Carter

  • 230 Posts
  • 3 Reply Likes
And how do I get the page of my site I want it to go to into this? A html widget does give link options like a image widget!
Photo of Boomer

Boomer, Champion

  • 2055 Posts
  • 84 Reply Likes
Are you wanting to link an image or text, Kent?
Photo of Kent T Carter

Kent T Carter

  • 230 Posts
  • 3 Reply Likes
I got it by placing the HTML for the banner image I needed in place of the "NEW TAB" in your code!
Photo of Boomer

Boomer, Champion

  • 2055 Posts
  • 84 Reply Likes
For an image link try the following:

<a href="YOUR LINK" target="_blank"><img src="YOUR IMAGE"/></a>

Replace the "YOUR LINK" with the URL you would like to go to.

Replace the "YOUR IMAGE" with your own image URL
e.g. h ttp://www.ac-monkeywrench-models.yolasite.c... IMAGE...

You can also look at this tutorial for more info:
http://www.quackit.com/html/tutorial/...

Hope this helps, Kent.
Photo of Kent T Carter

Kent T Carter

  • 230 Posts
  • 3 Reply Likes
Ya, I got it! Just is little stupid that I have to learn HTML when this site is supposed to have widgets to do this for us. But I am havin fun with it!
http://www.ac-monkeywrench-models.yol...
Photo of lawrence

lawrence

  • 1 Post
  • 0 Reply Likes
can anyone tell me how to make all the external links to open in a new tab or window when been clicked.
Arcadegamecity.com, a better place to play online arcade games,where you can play thousands of Arcade games for free including
sports games, action games, puzzle games, arcade games, dress-up games, shooting games, word games, racing games, and much more...
http://premium.arcadegamecity.com
http://arcadegamecity.com