Sent by Ethan Marcotte on 2 January 2003 15:03
> Well, Are there alternatives for target="_blank" without using Javascript?
Well, no--there aren't. In general, the death of the target attribute
is not a bad thing at all; there are a number of drawbacks to using
"target='_foo'" in your pages (most of them related to matters of
accessibility, but some users just find them out-and-out annoying
<grin>).
That said, you could easily invoke a popup script from the <a> tags'
onclick attribute (c.f. scottandrew.com[1] for a quick demo).
Alternatively, if you want to be really sneaky you could use
document.getElementsByTagName in the DOM-intelligent browsers out
there to toss your target back in, and thumb your nose at the W3 all
the while--I've posted a rudimentary example on my site [2], if it'd
help.
FYI, matters of XHTML/JS are pretty far off-topic for a CSS discussion
list; there are other sites/mailing lists (webdesign-l.org,
devshed.org, etc.) that might be more relevant.
Hope the above (or another reply to your query) is of some help to you.
Best,
- Ethan
_________________//ethan_marcotte
_________________//sidesh0w.com
References:
[1] http://www.scottandrew.com/weblog/2002_05#a000284
[2] http://www.sidesh0w.com/js/dom_snip.js