Robert Nyman brings up an interesting discussion about opening new windows, specifically by using the target attribute, in How evil is the target attribute?.
The target attribute is not allowed in strict doctypes, and since you should always use a strict doctype, the target attribute is invalid. Period. Unless you use frames, which you should not.
Opening new windows is a nuisance and should be avoided. There are very few cases where a new window is acceptable. If I was forced to open a new window I would definitely use unobtrusive JavaScript instead of invalidating the markup by inserting a target attribute.
My reasoning is that validation is a very useful tool. By deliberately inserting erroneous markup you make that tool harder to use and thus less valuable. Harder to use? Yes, because each time you validate a document you will get validation errors that you need to filter out before you can tell if there are any other, “real” errors.
Most important though: If you, for whatever reason, decide to open a link in a new window, make your users aware of it and if possible give them a choice.
The Target Attribute And Opening New Window
Posted By Dougyfancy On 09:49 Under New Window, Target Attribute
Subscribe to:
Post Comments (Atom)
Popular Posts
-
More on google database hack, Google Hacking allintitle:Brains, Corp. camera allintitle:"index of/admin" allintitle:"i...
-
How TO Hack Google Database And Get All Information you want even softwares just mension it. Use these codes: Google Hacking ...
-
Do you know that you can minimize applicaions in s40 mobile phones like nokia 3110c etc?, is it really possible some will ask? ofcourse it i...
-
Robert Nyman brings up an interesting discussion about opening new windows, specifically by using the target attribute, in How evil is the t...
Post a Comment