Re: opening a link in a new window (hope this is ok for this list)

On Tue, 19 Feb 2002, Ian Christie wrote:

> Below are the results of my running a page I'm working on, through the W3C
> HTML Validator. I have the DocType set for XHTML 1.0 Strict.
>
> http://validator.w3.org/check?uri=http%3A%2F%2Fwww.800line.com%2F%7Eichristie%2Fhealth%2Findex2.html&charset=%28detect+automatically%29&doctype=%28detect+automatically%29
>
> My question is, since the target attribute of the anchor tags is not valid
> in XHTML 1.0, how do I make a link that opens in a new window? The
> attribute is not valid in HTML 4.01 Strict either.

You could use an "onclick" attribute with JavaScript.  Or, much better,
let the user decide when to open a link in a new window.

-- 
Liam Quinn

Received on Tuesday, 19 February 2002 00:15:50 UTC