Solved

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

Posted on 2009-04-10
8
482 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
 
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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Flexbox in CSS3 2 25
Modify Table Width 6 13
Bootstap Icons 3 18
Apostophes in PHP generated form 6 13
Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

708 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now