Jump to content

Small help needed


robert_gsfame

Recommended Posts

I have this code

 

<input type="text" name="password" id="password" style="color:#CCCCCC" value="Type Password" onfocus="if(this.value==this.defaultValue){this.value='';this.style.color='#000000';this.type='password';}" onblur="if(this.value==''){this.type='text';this.value=this.defaultValue;this.style.color='#CCCCCC';}"/>

 

The problem is that when i try to type something inside password textbox let say "myname", it didnt change the text into password type ( ******)

 

Which part is wrong?? it worked well in mozilla browser but not in IE 6.0

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.