views:

35

answers:

1

Hello OS folks,

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.

alt text

It there anything I can do to get rid of that IE box? Or any other option to use to the same effect?

Thanks!

Maria

A: 

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

Marko