[thelist] How do you validate an A link with a "target"?

Martin Tsachev shaggy at members.evolt.org
Sat Apr 20 04:25:00 CDT 2002


On Wed, 17 Apr 2002 14:30:07 -0700, Scott Schrantz wrote:
>To open a new window in HTML Strict, use Javascript:
>
><a href="foo.html?one=1&amp;two=2"
>onclick="window.open('foo.html?one=1&amp;two=2');return false;">Here</a>

Actually I would have written it as:

<a href="foo.html?one=1&amp;two=2" onclick="window.open(this.href);return
false;">Here</a>

Makes your life easier when you have to update links.

--------------------------------------------

Martin Tsachev
http://members.evolt.org/shaggy/





More information about the thelist mailing list