IE problem with javascript

Posted by Syom on Stack Overflow See other posts from Stack Overflow or by Syom
Published on 2010-04-08T11:29:07Z Indexed on 2010/04/08 11:33 UTC
Read the original article Hit count: 201

Filed under:
|
|

i have the following simple script

<input class="input"  type="text" name="password" style="color: #797272;" 
                            value= "<?php if ($_POST[password] != '') {echo '';}
                                    else {echo '????????';}?>"   
                             onclick="if (this.value === this.defaultValue) {
                                                                         this.value='';
                                                                         this.style.color='black';
                                                                         this.type='password';
                                                                         }" 

                                 />

it works fine, but in IE7 it doesn't change the input type.

this.type='password'; doesn't work

could you help me? thanks

© Stack Overflow or respective owner

Related posts about html

Related posts about css