Lately I've been in a heated debate with colleagues at work on why they shouldn't use the target attribute anymore and how they should and could work around this "problem". Ever since there was a Strict doctype the target attribute was deprecated (yes, also in HTML 4.01 Strict!). Personally I've never wanted to use this attribute because you remove the ability of the end-user of a webapp or the visitor to your own website to choose how he or she wants to open a (new) window. Therefore I've always opted to let my more than able visitors to choose for themselves. If they want to return there's always the back-button or the history in the browser. Or they just use Ctrl + mouseclick to open a new window (or a tab)themselves. But for some time now there's an unobtrusive script around that can help those who don't know how to or who have to open links in a new window.
Updated 09 May 2006, by Sebastiaan Naafs - van Dijk
Roger Johansson has posted an update on his script that's really an improvement. Read the full post here.
Updated 24 October 2006, by Sebastiaan Naafs - van Dijk
Posted by Sebastiaan Naafs - van Dijk | top