• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 545
  • Last Modified:

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

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
don0don
Asked:
don0don
  • 5
  • 3
1 Solution
 
dan_nealCommented:
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
 
don0donAuthor Commented:
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
 
don0donAuthor Commented:
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
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
dan_nealCommented:
Not that I'm aware of.  Only alternative I can think of would be to use clientside scripting with the onclick event.
0
 
don0donAuthor Commented:
What are the advantages and disadvantages to that approach, as compared to using target="_blank"?

0
 
don0donAuthor Commented:
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
 
dan_nealCommented:
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
 
don0donAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now