开发者

Onfocus: How to stop it prompting IE security box?

I have this on an html:

   <input type="text" name="username" size="10" alt="Username" value="Username"
    onfocus="if(this.value=='Username') this.value='';" />

But this prompts an irritating IE security box on browser.

Onfocus: How to stop it prompting IE security box?

It there anything I can do to get rid of that IE box? Or any other option to use to the same effec开发者_如何转开发t?

Thanks!

Maria


Are you running the page from your computer? (i.e. double clicked on the .html file?) Usually Internet Explorer does this for local files to prevent attacks. Open this and see if the yellow bar comes up. http://jsfiddle.net/25xBW

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜