[thelist] How do you validate an A link with a "target"?
Luther, Ron
Ron.Luther at COMPAQ.com
Wed Apr 17 16:38:01 CDT 2002
Thanks Scott,
Looks like that shold still work for anyone who might have JS turned off too.
RonL.
-----Original Message-----
From: Scott Schrantz [mailto:scotts at rci-nv.com]
> -----Original Message-----
> From: Luther, Ron [mailto:Ron.Luther at COMPAQ.com]
>
> Is there some syntax that will give me "open this link in a
> new window" functionality that will validate to 4.01 strict?
target="" is not an allowed attribute under the Strict doctypes. It is
allowed under a Transistional or Frameset doctype, though, even in XHTML. To
open a new window in HTML Strict, use Javascript:
<a href="foo.html?one=1&two=2"
onclick="window.open('foo.html?one=1&two=2');return false;">Here</a>
Notice the ampersand was written & too.
More information about the thelist
mailing list