views:

30

answers:

1

Hello..
I am getting an error called there is no attribute "onFocus". I have a code as follows:

<input name="name" id="name" class="small required name" type="text" value="Name:" onFocus="if(this.value='Name:'){this.value=''}" />

I tried validating my site in http://validator.w3.org/, and I got these errors. Can anyone help me to resolve this issue.

Thanks in advance.

A: 

The attribute name is onfocus, with a small f. That's what the validator is complaining about.

Strelok