Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Force navigator to Open Link in New Tab by URL

Tags:

html

i have a request if possible, i have an interface which containts a table :

name of application   url 
XXXXXX                www.xxx.com

Problem is when I click in the url I lose my information on my current page. my question is there is a code language by Internet explorer FF chrome... provide this action open in tab this url to put in the url like the method version and the other like this about:version ==> open in new tab : this url to put in the url navigator and we get a new tab thank you for help . i try open in a new tab by tools provided by IE , but if possible provide a solution like a code entered in url to open a new tab

like image 969
Hatim Avatar asked Nov 30 '12 11:11

Hatim


1 Answers

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

You may use the target attribute of the link like this :

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

If you want something you can type in the URL field of the browser, that is a bookmarklet, you may use this :

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

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

EDIT :

If what you can modify is only the href attribute of the link, you can make this href be like this :

 <a href="javascript:window.open('http://www.dystroy.org');" target=_blank>text</a>
like image 138
Denys Séguret Avatar answered Sep 28 '22 21:09

Denys Séguret