The TARGET attribute is actually part of frames, and therefore is not available in Strict flavors of XHTML. _javascript_ offers the only alternative in this instance. It should be noted that opening new windows is not generally a good idea, and there are number of problems associated with the practice:
 
1. Opening a new window or browser instance is considered "rude". The user can generally choose to do so by right-clicking on a link.
2. Some user agents do not support multiple windows, such as cellphones.
3. Some user agents do not support _javascript_.
4. Some users have _javascript_ turned off.
5. Opening new windows can cause accessibility problems, such as disabling the BACK button.
 
I recommend you read http://useit.com/alertbox/20021223.html, from Jakob Neilsen, before proceeding.

--------------------------------------
Simon Jessey
business: http://keystonewebsites.com/
personal: http://jessey.net/blog/
e: [EMAIL PROTECTED]

 
 
 -----Original Message-----
From: Ryan Christie [mailto:[EMAIL PROTECTED]
Subject: [WSG] A quick XHTMLquestion

I'm trying to move away from XHTML 1.0 Transitional into XHTML 1.1 or 1.0 strict. When I validate my pages as such, it tells me that the target attribute for 'a' tags no longer exists. Would using _javascript_ to open new browser windows on click thrus be acceptable? Is there a better way to achieve this using something other than JS that I'm not aware of?

Reply via email to