W3C home > Mailing lists > Public > www-validator@w3.org > August 2007

Re: [VE][108] Ther is no attribute onclick

From: zoran knezevic <zoransa@gmail.com>
Date: Tue, 14 Aug 2007 17:13:14 +0400
Message-ID: <ecea34890708140613x36606fadr3fbfa4f81ff95d2e@mail.gmail.com>
To: www-validator@w3.org

Very common mistake of Javascript programmers, its all lowercase
onclick not onClick

best,

--
Zoran http://www.fragrantica.com/

On 8/14/07, Rafael Sposito <rafaelsposito@gmail.com> wrote:
> Error [108]: "there is no attribute X"
>
> I'm using xhtml transitional 1.0 and i have a form which i want to validate
> via javascript. so i have my submit button:
> <input type="submit" id=
> "botao" onClick="javascript: return ValidaLogin();"
>  value="Entrar" class="bt"
> />
>
> Then w3c says there is no attribute onClick. so how do I validate my form??
>
> And it also says there is no attribute onKeyDown which I use in my textboxes
> for if i have more than one button on my page, I use the keydown event so
> that when the user hits enter, I activate the click of the right button for
> the textbox he is in.
> If I can't use onKeyDown, how do I do this??
>
Received on Tuesday, 14 August 2007 13:13:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:25 GMT