July 12, 2003

Standards-based Replacement for target="_blank" in External Links

This article shows a nice JavaScript implementation that validates in Strict HTML 4.01 or Script XHTML 1.0 essentially replacing the need to use target="_blank" to open an new window for external links.


Love it or hate it, many authors prefer to have links that are external to their sites open up in new browser windows. This is typically done through the use of target attributes on those links. However, as you may be aware, the target attribute is not valid for links when authoring in the Strict flavors of either HTML 4.01 or XHTML 1.0.

This is on my TODO list for all of my future web development stuff. Way cool!
[ Full Story @ www.serve.com ]

Posted by akvalley at July 12, 2003 12:14 AM | TrackBack
Comments
Post a comment









On-topic comments, complaints, and criticisms are welcome, but off-topic or inappropriate comments will be deleted without notice to the commentor. If you include your URL below it will be linked (and subsequently indexed by Google and the like...possibly).

Since ALL of the message text is displayed online, please maintain your personal privacy by not posting personal information.

Remember personal info?






Please enter the code as seen in the image above to post your comment.