G'day

Serdar Kýlýç wrote:
How does one open a new window with a 4.01 Strict DOCTYPE and have it
be valid? For my weblog I ran the w3 validator and it complained that
there is no attribute called target

The main idea is that one should not open new windows at all, leaving it up to the user to decide, which is why the target attribute was removed.

But if you want to (or "have to"), either go back to transitional or use javascript. You may find some discussions about it in the mail list archives, but the simplest implementation would go along these lines:

<a href="page.html" onclick="return !window.open(this.href)">link text</a>

Regards
--
Bert Doorn, Better Web Design
http://www.betterwebdesign.com.au/
Fast-loading, user-friendly websites


******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************

Reply via email to