View Full Version : Open link in new tab
12-14-2006, 07:14 PM
I'm searching for code that'll open a link in a new tab, just as you can open one in a new window.
The code would have to be able to detect browser version and open in a new window if it doesn't support tabbed browsing.
Thanks in advance.
12-20-2006, 09:39 AM
Can you do that? Seems to me that you would need to basically rewrite an over ride for use settings. In FF atleast (as I haven't tried IE7 yet) opening links in a new tab or a new window is a user choice, not a web masters.
Theoretically then, if I want all links to open in a new window they will do so, despite what code you have on the link itself.
12-20-2006, 10:20 AM
Yes IE 7 also support a provision for opening new window(s) using new tabs. I don't think it is possible for the developer to override the settings of user browsers.
Another example is even if you don't display address bar IE 7 will add its own address bar overriding the script that generate the popup window irrespective of its settings..
03-13-2009, 11:43 PM
Just for kicks and giggles, thought I would make up what I believe to be a random code for opening links in new tabs. Using HTML codes do the following.
<a href="pickasitename.net" target="_tab">Pick a Site Name</a>
Tried it in Firefox and it opened link in new tab (as long as tabbed browsing is turned on). Tried it in IE7 as well to no avail, just opened it in a new window.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.