PDA

View Full Version : How Can I Open a Link in a New Window in XHTML- Strict?


wewain
10-13-2002, 07:12 AM
How can I get around the prohibited use of
target="_blank" in XHTML-Strict, and open a
link in a new window?

Can I add an entry such as:
a.blank{ ___ }
to my stylesheet and then use
<a class="blank" href=... etc... >Link Text</a>?
If so, what goes into the stylesheet entry?

wewain
10/13/2002

Update 10/16/2002:
I was offered the following method:

<a href="newpage.html" onclick="window.open(this.html); return false;">new page</a>

It works, and it passes the W3C "XHTML-Strict" Test .