?
Solved

Open link in new tab (FireFox & IE7)

Posted on 2006-03-31
3
Medium Priority
?
18,066 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!
0
Comment
Question by:blacksix
3 Comments
 
LVL 17

Assisted Solution

by:BogoJoker
BogoJoker earned 1000 total points
ID: 16345462
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
0
 
LVL 65

Accepted Solution

by:
SheharyaarSaahil earned 1000 total points
ID: 16345687
0
 
LVL 5

Author Comment

by:blacksix
ID: 16345780
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.
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question