I have set my IE10 to have "Always open popups in a new tab" and "A new tab in the current window". When clicking on links with target="_blank" the link opens the page in a new window rather than a new tab.
Does anyone know how to either force IE10 to open in a new tab from this type of link or a replacement for target="_blank" that will work the same in all browsers?
- Changed type beedeagleMicrosoft contingent staff, Moderator Thursday, March 21, 2013 7:54 AM
there are security zone settings for 'scripted' windows... target does not apply if you script your anchor tags... for questions about html, css and scripting for website developers please post to the MSDN IE Web Development forum, with a link to your website.
other browsers do not use the IE Security zone model. Depending upon your document type declaration you can use the <base> tag's target attribute to over-ride anchor tags target value. The common design pattern is to use a naked anchor tag (no onclick handler)
<!DOCTYPE html> <html> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type"> <title>Links test</title> </head> <body> <a href="#" onclick="window.open('http://www.w3schools.com/tags/att_a_target.asp','_new')">scripted</a> <a href="http://www.w3schools.com/tags/att_a_target.asp" target="_new">New</a> </body> </html>
Its not a bug!..... you just when to the wrong website for your reference.... w3c.org and w3schools are not affiliated in any way.
You will find the w3c Educational wiki at: http://www.w3.org/community/webed/wiki/The_basics_of_HTML
Please post to the appropriate forums so that the appropriate audience can benefit....
Please also see http://w3fools.com
see also http://www.websiteadministrator.com.au/articles/target-new.html
- Edited by IECustomizerMVP Thursday, February 28, 2013 2:46 AM
the quality of our answers depends on the quality of your questions....
the question is off topic to this forum... an answer about html requires at least a snippet of the markup....
as you can see there are a number of ways to code an anchor tag.... this in turn can determine the outcome as IE's popup blocker uses both the target and the source zone AND whether the window is scripted.
w3fools.com is owned by w3c.org.... I must admit that w3schools.com has cleared up their act since they have come under criticism...as a reference source though w3c.org is definitive since it is the 'standards' setting authority that the stakeholders subscribe to.
I too am getting tired of Microsoft deciding how I want links to open. I tried myself to make any new link open in another tab on same Windows and of course it will not because IE10 tries to group stuff together. So now I end up with multiple Windows open?? How is this better again Microsoft? Its no wonder Chrome has become so popular. Maybe Google's team actually listens to its users?