We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now

x

Open link in new tab (FireFox & IE7)

blacksix
blacksix asked
on
Medium Priority
18,096 Views
Last Modified: 2011-08-18
How do a make a link that opens in a new tab when clicked? I have seen this on websites in the past, but never bothered to view the source... now I cant find one for the life of me.

Thanks!
Comment
Watch Question

Hi blacksix,

I think this mostly has to do with the user's firefox settings.
Here are some targets:
_blank
_parent
_self
_top

Most likely the browser will open, _blank in a new tab.  I am not sure but maybe _new exists as well.

Joe P

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
CERTIFIED EXPERT
Expert of the Year 2004
Top Expert 2004
Commented:

Author

Commented:
Looks like thats the answer.. Thing is I'm almost positive I've seen it happen before, must have been dreaming... Just tried the CSS3 'target-new' property... which it turns out is not supported by firefox yet (as of ver 1.5 anyway).

********* HTML
<a href="http://www.google.com" class="newtab">

********* CSS
.newtab {
target-new: tab !important;
}

No go, guess I'll have to wait until CSS3.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.