Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

target="_blank" and IE7 -- I want a new tab, not a new window

Posted on 2009-04-10
8
509 Views
Last Modified: 2012-06-27
How come target="_blank" opens a new tab in Firefox and Chrome, but opens an entirely new window in IE7? Is there an alternate code that will open a page in a new tab in all tabbed-browsing-enabled browsers?
0
Comment
Question by:don0don
  • 5
  • 3
8 Comments
 
LVL 9

Expert Comment

by:dan_neal
ID: 24115999
Have you checked the tab settings in your IE environment.  I believe this is a user setting and cannot be forced.  If IE7+ is setup to launch links in new window instead of a new tab then there is nothing that can be done to stop this.
0
 

Author Comment

by:don0don
ID: 24116368
Hmmm .... that's interesting. IE7 is set to always open pop-ups in a new window. Are internal links -- links on one page of a web site pointing to another page on the same web site -- always regarded as a pop-up? If so, is this something that is determined by HTML rules or is it a browser-specific behavior? I would think it's the latter, since Firefox and Chrome don't seem to treat these links the same way.
0
 

Author Comment

by:don0don
ID: 24116542
Just out of curiosity, is there an alternative to the target="_blank" code -- similar to the way that title= is an alternative to alt=?
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 9

Expert Comment

by:dan_neal
ID: 24116620
Not that I'm aware of.  Only alternative I can think of would be to use clientside scripting with the onclick event.
0
 

Author Comment

by:don0don
ID: 24116715
What are the advantages and disadvantages to that approach, as compared to using target="_blank"?

0
 

Author Comment

by:don0don
ID: 24120196
And I'm still wondering about internal links. Are internal links -- links on one page of a web site pointing to another page on the same web site -- always regarded as a pop-up? If so, is this something that is determined by HTML rules or is it a browser-specific behavior?
0
 
LVL 9

Accepted Solution

by:
dan_neal earned 125 total points
ID: 24120350
Unless a link has a target that is other than self or undefined, the rendered page is opened to the same window/tab as the calling page.  Only links that have a target defined as _new or _blank are considered pop-ups as they are displayed while the current page is left unchanged.
0
 

Author Comment

by:don0don
ID: 24120608
And how would the link be regarded if I used clientside scripting with the onclick event?

Are there any downsides to using that method?
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
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.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

789 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