W3C home > Mailing lists > Public > www-validator@w3.org > February 2002

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

From: Liam Quinn <liam@htmlhelp.com>
Date: Tue, 19 Feb 2002 00:15:59 -0500 (EST)
To: Ian Christie <ichristie@bmts.com>
cc: <www-validator@w3.org>
Message-ID: <Pine.LNX.4.33L2.0202190014490.29727-100000@localhost.localdomain>
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

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:32 UTC