School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 300,401 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,585 people online right now. Registration is fast and FREE... Join Now!




New Tab

 

New Tab

firebolt

23 Jun, 2009 - 11:41 PM
Post #1

D.I.C Lover
Group Icon

Joined: 20 Feb, 2009
Posts: 5,463



Thanked: 75 times
Dream Kudos: 1675
My Contributions
Hi.

I've been using this code for opening a link in a new window:
CODE

<a href="" target="_blank">

but I was wondering if there was something similar for opening a link in a new tab.

Thanks.

User is offlineProfile CardPM
+Quote Post


no2pencil

RE: New Tab

23 Jun, 2009 - 11:49 PM
Post #2

i R L33t Skiddie, k?
Group Icon

Joined: 10 May, 2007
Posts: 13,228



Thanked: 289 times
Dream Kudos: 2875
Expert In: Goofing Off

My Contributions
I would be surprised if tabs were a part of html standards. Do all browsers have tabs now?
User is online!Profile CardPM
+Quote Post

noorahmad

RE: New Tab

24 Jun, 2009 - 12:00 AM
Post #3

Webmaster
Group Icon

Joined: 12 Mar, 2009
Posts: 2,018



Thanked: 125 times
Dream Kudos: 1350
My Contributions
QUOTE
I would be surprised if tabs were a part of html standards.

hahah.... hehehehe...
User is online!Profile CardPM
+Quote Post

RudiVisser

RE: New Tab

24 Jun, 2009 - 12:37 AM
Post #4

.. does not guess solutions
Group Icon

Joined: 5 Jun, 2009
Posts: 1,872



Thanked: 137 times
Dream Kudos: 125
Expert In: PHP, MySQL, HTML, CSS, C#

My Contributions
QUOTE(firebolt @ 23 Jun, 2009 - 11:41 PM) *

Hi.

I've been using this code for opening a link in a new window:
CODE

<a href="" target="_blank">

but I was wondering if there was something similar for opening a link in a new tab.

Thanks.

Sadly there isn't, no. Although good browsers (Op, IE, Safari, Chrome, Konqueror, etc) will open a new tab anyway, think there's only 1 that doesn't blink.gif

There's not even some browser-specific Javascript that will open a new tab, either, which kindof sucks.

This post has been edited by MageUK: 24 Jun, 2009 - 12:41 AM
User is offlineProfile CardPM
+Quote Post

firebolt

RE: New Tab

24 Jun, 2009 - 01:11 AM
Post #5

D.I.C Lover
Group Icon

Joined: 20 Feb, 2009
Posts: 5,463



Thanked: 75 times
Dream Kudos: 1675
My Contributions
Wow. But when I click on the website part in the DIC profiles, it opens in a new tab, rather than a new page. Can anyone answer to that? Edit *it sometimes does that*

This post has been edited by firebolt: 24 Jun, 2009 - 01:12 AM
User is offlineProfile CardPM
+Quote Post

no2pencil

RE: New Tab

24 Jun, 2009 - 01:13 AM
Post #6

i R L33t Skiddie, k?
Group Icon

Joined: 10 May, 2007
Posts: 13,228



Thanked: 289 times
Dream Kudos: 2875
Expert In: Goofing Off

My Contributions
Like MageUK pointed out, most browsers will open a new tab for _blank. Or are you saying that you are getting a different result?
User is online!Profile CardPM
+Quote Post

firebolt

RE: New Tab

24 Jun, 2009 - 01:17 AM
Post #7

D.I.C Lover
Group Icon

Joined: 20 Feb, 2009
Posts: 5,463



Thanked: 75 times
Dream Kudos: 1675
My Contributions
No sorry my bad. Edited it before you posted.

IE8 doesn't allow me to open in a new tab when using _blank, but FF and Opera allows me to. smile.gif
User is offlineProfile CardPM
+Quote Post

RudiVisser

RE: New Tab

24 Jun, 2009 - 01:49 AM
Post #8

.. does not guess solutions
Group Icon

Joined: 5 Jun, 2009
Posts: 1,872



Thanked: 137 times
Dream Kudos: 125
Expert In: PHP, MySQL, HTML, CSS, C#

My Contributions
It's all down to the configuration, if it doesn't do it, it probably can be changed in settings.

I always middle-click links anyway, so they open in a new background tab anime1.gif
User is offlineProfile CardPM
+Quote Post

firebolt

RE: New Tab

24 Jun, 2009 - 01:50 AM
Post #9

D.I.C Lover
Group Icon

Joined: 20 Feb, 2009
Posts: 5,463



Thanked: 75 times
Dream Kudos: 1675
My Contributions
Same. its always easier. Anyway, thanks to all who responded. smile.gif
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/7/09 10:19PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month