[thelist] XHTML 1.0 Strict -no target attribute allowed?
Vlad Alexander (XStandard)
vlad.alexander at xstandard.com
Fri Oct 22 20:12:48 CDT 2004
Hi Julia,
There are several ways to do this. The easiest is the following:
<a onclick="window.open(this.href); return false;" onkeypress="window.open(this.href); return false;" href="abc">text</a>
If the browser does not support JavaScript or it's no enabled, the link will open in current window.
Regards,
-Vlad
http://xstandard.com
Standards-compliant XHTML (Strict / 1.1) WYSIWYG editor
----- Original Message -----
From: "Julia" <julia at juliadesigns.net>
To: <thelist at lists.evolt.org>
Sent: Friday, October 22, 2004 8:27 PM
Subject: [thelist] XHTML 1.0 Strict -no target attribute allowed?
> Hi everyone:
> This is my first post to the list, so I am sorry if the question seems a
> bit simplistic.
> My pages validate as XHTML 1.0 Transitional, but I was hoping to enable
> them to validate as Strict, and eventually XHTML 1.1.
> I have run them through the Validator, and the main stumbling block appears
> to be the use of the target attribute for anchors (specifically
> target="_"blank") for links to external sites which I wish to have open in
> a new window. I have been crawling around W3c.org for ages, but cant find
> anything on the syntax that I should use instead.
> Can anyone help me please?
> thanks in advance
> Julia
>
> --
>
> * * Please support the community that supports you. * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>
More information about the thelist
mailing list