fred asselyon Posted August 19, 2006 Share Posted August 19, 2006 I'm switching to XHTML 1.0 Strict and target="_blank" is not functional anymore. What should I use in replace?Thanks Link to comment Share on other sites More sharing options...
Jack McKalling Posted August 19, 2006 Share Posted August 19, 2006 Nothing, really :)I remember it was implemented in CSS3, with a few new options, but at least IE doesn't support CSS3...At first, W3C decided it should be up to the the user if he wants the document opened in a new window or the same. But many people discusses that decision, it should be possible for the creator of the site to suggest a new window or not. So they put back in the target in Strict, at least I think they did, in CSS.You can still use strict Xhtml with the target attribute, but with a Transitional DTD, or just not a "W3C valid" Strict one. :)Another sollution is to use javascript to open the document in a new window by script.Like this in the html part: <a href="something" onclick='return MyFunction(this.href)'>Click here</a> And this in the script (head section) part: <script type="text/javascript"><!--function MyFunction(url) {window.open(url,"_blank","specs for window")return false;}//--></script> Link to comment Share on other sites More sharing options...
dcole.ath.cx Posted August 19, 2006 Share Posted August 19, 2006 don't have it open in a new window... if the user wants it in a new window they can do it on there own! Opening alot of windows bugs people... unless they really want to. Link to comment Share on other sites More sharing options...
Jack McKalling Posted August 19, 2006 Share Posted August 19, 2006 Of cource, but then again, then you're not suggesting anymore, then you're forcing! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now