Forum Moderators: open
If I find a site that forces me to have another window open that I didn't choose, I leave the site and put it on my banned list immediately - this includes new window external links. If I want a new window, I know how to right click.
Another problem I've seen, is that if the new window is made with java and not html, a lot of pop up blockers won't ever open the new window - if you're going to use this technique, make sure it's all in html.
From an earlier thread: [webmasterworld.com...]BlobFisk wrote:
"To be honest, I'm not sure if there is a replacement for the target="_blank" in HTML4.01."tedster wrote:
OPENING A NEW WINDOW IN STRICT HTML
Now here is the mess. Everything you try has a downside. You can use javascript's window.open() method, but of course you run into problems with disabled/no javascript and some of the sub-par pop-up blockers.Even when the user agent does execute the javascript, many browsers do not pass on the referrer. In many situations (external links, for example) that is not acceptable.
Sitepoint has an article by Kevin Yank where he explains how Sitepoint approaches the problem. They use the newly introduced attribute rel= and give it a non-standard argument rel="external". Then they run a script on every page to find all the hyperlinks. Whenever a link has the attribute rel="external" the javascript function then declares anchor.target = "_blank"; for that link.
This approach does validate and it also avoids the referrer problem, so it has those advantages. Older browsers, however, will just open the link in the same window. Not too big a loss, but still it is a loss.
What on God's Green Earth was wrong with "target=_blank" so as not to include it in the strict standard?
Now this is exactly the sort of thing that makes me go "F*** your f****** standards!"
No wonder nobody uses the strict standard (or DTD). The W3C are messing it up for themselves by "forcing" everybody to code any which way because the "standard" simply is unusable.
[useit.com...]
No wonder nobody uses the strict standard (or DTD).
I use it along with many others. You are not forced to use the Strict DTD. You are not forced to validate. You've chosen to at least validate Transitional which is a step in the right direction. If you feel that opening a new window for links is something your visitors are comfortable with, then go for it.
Unfortunately the research and statistics show that spawning a new window from a link is as stated above by DrDoc and the others. I stopped using the target attribute a couple of years ago. Unfortunately, I do have projects that require the use of target for framesets and iframes and in those instances we at least validate Transitional knowing the only errors are those target attributes.
It is a little frustrating at first trying to work around it but, after a while it grows on you. There is a reason that target="" is deprecated, I'm still trying to justify it to myself. ;)
Since target= _blank is deprecated, what would people suggest? Should I make them use the back and forward buttons to go back and forth to the help page?
How key is validation to getting a good listing?
I am teetering between just finding someone to go in and fix my site so it is totally compliant with everything and just forgetting about it since in terms of browsers over 99 percent of traffic can doubtless get through the imperfections. There is nothing complex about my site.
Best, S