Power navigator to open a link in a new tab at the URL

I have a query, if possible, I have an interface that contains a table:

name of application url XXXXXX www.xxx.com 

The problem is when I click on the URL, I lose my information on my current page. my question is whether there is a code language through Internet explorer FF chrome ... to provide this action, open this URL in a bookmark to enter a URL, for example, a version of a method, and another example: version ==> open in a new tab : this url is for entering the url navigator and we get a new tab Thanks for the help. I'm trying to open a new tab using the tools provided by IE, but, if possible, provide a solution similar to the code entered in url to open a new tab

+4
source share
4 answers

If I get you, you want your link to open the page in another tab.

You can use the target link attribute as follows:

 <a href="somepage.html" target=newtab>text</a> 

If you want to enter something into the browser URL field, this is a bookmarklet, , you can use this:

 javascript: window.open('http://www.dystroy.org'); 

In most browsers, ctrl-click, a link does the same.

EDIT:

If you can only change the href attribute of a link, you can make it href as follows:

  <a href="javascript:window.open('http://www.dystroy.org');" target=_blank>text</a> 
+6
source

If his hyperlink simply adds the "target" to the hyperlink with its value as "_blank". Working example:

 <a id="termsLink" href="www.someLink.com" target=_blank> Terms and Conditions</a> 
+1
source

The java script solution works fine in the case of shortcodes that offer you the href (or url) parameter, but not the target parameter. Here is an example with the popular shortcode:

 [callout title='Your big Title' text='your small text...' button_text='CLICK ME' button link="**javascript:window.open**('http://www.dystroy.org');"] 

Without javascript, the linked page will open to the current one.

+1
source

You do not need any code to open the link in a new tab or window. HTML already has built-in functionality.

Use the tag to show your URL and use the target attribute to open it in a new window.

Example:

 <a href="http://www.xxx.com" target="_blank">www.xxx.com</a> 

Read more about tag and target attribute here.

0
source

All Articles