i have a very small query, how do i change the attribute type of a input type, what i mean is this
initially i have a input type in the form
<input type="text" name="userpassword" value="enter password">
now on focus of this text box i want to change the type="text" to type="password"
i.e something like this, but i don't know wether its possible or not
<input type="text" name="userpassword" value="enter password" onFocus="this.Type='password';this.value='';">
the above code doesn't give any error, but also my requirement is not solved.
the data enetered is shown as text and not in pasowrd format...