Target denied

August 14, 2005 by Oliver
Filed under: Javascript 

The target attribute of a tags is no longer allowed in HTML (HTML 4.01 Strict and XHTML 1.0 Strict).

This is technically corect since HTML is for marking structure of a document and opening things in different windows is a user-interface issue and hence is within the domain of javascript.

What's really odd though is the suggested workaround. Mark tags that need to open in a different frame or window somehow (rel="external" for instance) and then use a javascript function to give all those links a target attribute.

Seems silly to me.

HTML, XHTML, standards, Javascript, ECMAScript, DOM]]>

Comments

Comments are closed.