开发者

How to resolve this error - there is no attribute "onFocus"

开发者 https://www.devze.com 2023-01-11 05:32 出处:网络
I am getting an error called there i开发者_Python百科s no attribute \"onFocus\". I have a code as follows:

I am getting an error called there i开发者_Python百科s 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?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消