开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜