Is there a way to specify the target for links in CSS? In my web site that is under development, I got the pages validated by the tool on the w3c and html 4.xx strict doesn't support the target attribute. So that I can still have my external links open in a new window, can the target be specified in the CSS?
But, what if users have javascript disabled in their preferences, as many do?
d a v e -> RE: target="_blank" (10/6/2004 14:58:07)
you've just moved the target attribute into the javascript - just for the sake of validating, yet you're doing the same thing. either use target _blank and use a transitionla doctype for that page, live with that one 'error' on each page or then simply let users decide when they want a new window open. (shift+click will do it in IE and various way sin opera and moz)
bobby -> RE: target="_blank" (10/6/2004 15:17:21)
quote:
Is there a way to specify the target for links in CSS?
Nope
target="new" or target="_blank"
If W3C valid HTML is a concern... just don't open links in a new window...
(I'm no help at all am I?)
[:)]
d a v e -> RE: target="_blank" (10/6/2004 16:20:59)
i was in the same quandary and decided to remove my target attributes. it's better usability - at least as far as the likes of Jakob Nielsen are concerned, though i have my doubts about less experienced users knowing how to easily and quickly open new windows themselves. i don't think anyones is going to get confused if external pages don't open in a new window - at least without a user choosing to do so, though to help users from forgetting where the originating site (i.e. your site) was it would be nicer to open new windows so they don't have to hunt through their history.