Change Input Type auto focus

15 / Mar / 2011 by Umar 4 comments

This is little bit but it is very useful. This is input type equalto text when when cursor come in input then change type equalto password.

Embed in html
[java]
<input type="text" onblur="javascript:if(this.value==”){this.value=’password’,this.type=’text’} else {this.type=’password’}" onfocus="javascript:if(this.value==’password’){this.value=”} {this.type=’password’}" value="password" tabindex="1" size="30" id="txtEmail" name="txtEmail">
[/java]

This is Demo




Support browser

IE Firefox Safari Chrome Opera
6.0+ 3.5+ 3.0+ 3.0+ 10.5+
FOUND THIS USEFUL? SHARE IT

comments (4)

  1. sizegenetics instructions

    Excellent blog here! Also your website loads up fast!

    What host are you using? Can I get your affiliate link to your host?
    I wish my site loaded up as fast as yours lol

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *