| SillyDog701 Forums |
| Author |
Message |
Poprocks

 Logan Rathbone Joined: 01 Nov 2003 Posts: 12
|
15 Nov, 2003 9:13 pm HTML/Javascript code to open pages in a new tab? |
[sdp=20973] |
|
I was just wondering if there was some kind of HTML or Javascript code that could be used to cause hyperlinks to open in new tabs (on Netscape, Mozilla, Opera, etc.) and simply open in a new window in Internet Explorer, Dillo, etc.
I for one would like to see web developers step into the next generation of web browsing -- the tab.
Thanks in advance.
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 Firebird/0.7
From memory, Windows is a 32-bit hack on a 16-bit GUI, written for an 8-bit OS that originally ran on a PC with a 4-bit system bus, made by a 2-bit company that can't stand 1 bit of competition.
Windows: Stop complaining about it; stop using it. |
|
| Back to top |
|
 |
bhtooefr


Joined: 17 Aug 2004 Posts: 23
|
18 Aug, 2004 12:13 pm |
[sdp=42450] |
|
Well, you've got one little problem there. AFAIK, without using XUL (which non-Gecko browsers barf all over, and which might only WORK in Firefox), you can't tell a browser to open in a new TAB, just a new window (which it's up to the browser to interpret as a new tab).
Also, Dillo won't even touch JavaScript, so it'd have to be HTML.
UserAgent: Dillo/0.8.0
Don't be surprised by my UA flipping from Opera 7.5x Linux or Win, Netscape Communicator 4.8 Linux, Dillo 0.8.0, Mosaic 2.7b5 Linux, or Firefox 0.9 Win. |
|
| Back to top |
|
 |
Antony


Joined: 18 Jun 2002 Posts: 12846 Location: Sydney, Australia
|
18 Aug, 2004 8:03 pm Re: HTML/Javascript code to open pages in a new tab? |
[sdp=42485] |
|
| Poprocks wrote: | I was just wondering if there was some kind of HTML or Javascript code that could be used to cause hyperlinks to open in new tabs (on Netscape, Mozilla, Opera, etc.) | No, you can't. | Quote: | and simply open in a new window | Add target attitude into your HTML tag (A).
| Quote: | I for one would like to see web developers step into the next generation of web browsing -- the tab. | tab browsing is still a new way of browsing, and I personally don't think it should become a common feature.
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040206 Firefox/0.8
|
|
| Back to top |
|
 |
mhiri

 Mahmoud MHIRI Joined: 07 Sep 2006 Posts: 1
|
07 Sep, 2006 4:17 am Re: HTML/Javascript code to open pages in a new tab? |
[sdp=77079] |
|
| Antony wrote: |  | Poprocks wrote: | I was just wondering if there was some kind of HTML or Javascript code that could be used to cause hyperlinks to open in new tabs (on Netscape, Mozilla, Opera, etc.) | No, you can't.  |
In the Google Desktop Search, when you open a search result, it's opened in a new tab. but as you know, you never know who google does!!
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.0.5) Gecko/20060719 Firefox/1.5.0.5 |
|
| Back to top |
|
 |
lukestaff

 teddy Joined: 18 Nov 2008 Posts: 1
|
18 Nov, 2008 9:05 pm |
[sdp=94382] |
|
I was looking for the exact same cod ebut couldnt find one then i saw this on google and here i am.. I noticed how to open a new window.. you use the target frame.. "target=_blank" so i thought i should try replacing "_blank" with "_newtab" just for kicks and see if it works and apperantly it does on most browsers.. i tried with ie7 and firefox and safari.. So ther you have it..
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; FunWebProducts; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506) |
|
| Back to top |
|
 |
Flober


Joined: 03 Feb 2010 Posts: 2
|
03 Feb, 2010 10:38 am |
[sdp=99392] |
|
In HTML web programming language, to launch the new document (web pages) from links in a new window or tab effect is typically done through the use of target attributes on those links.
In this case, the link anchors will be using “_blank” as the value of the “target” attribute. “_blank” tells the web browser to open the new document loaded from the link in a new window. “target” attribute is also used in websites with frame structure to tell the web browser which frame the target page of a link should open when click. However, “_blank” does not require the use of any frames. You can read any html tutorials .The syntax or HTML code is typically as below:
<a href=”newwindow.html” target=”_blank”>New Window</a>
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 |
|
| Back to top |
|
 |
|