Hi guys,
I've a problem. The following script works on FireFox, Google Chrome and IE8, but it seems it doesn't work on IE7...
When the page loads, the username & password boxes are displayed. The username field says "username", and the password box says "password" (style text). When you click on the password field, I change the password field using DOM to one with style=password, so when the user types his password, it isn't displayed and it shows the *******.
The problem is that on IE7, when you click on the Password box, the box gets moved to the right....
I've tried but haven't found a solution for this, please help!! .
Code:
<script type="text/javascript">
function switchto(q)
{
if (q)
{
document.getElementById('ln_auth_password_hdrtxt').style.display="none";
document.getElementById('ln_auth_password_hdr').style.display="inline";
document.getElementById('ln_auth_password_hdr').focus();
}
else
{
document.getElementById('ln_auth_password_hdr').style.display="none";
document.getElementById('ln_auth_password_hdrtxt').style.display="inline";
}
}
</script>
Bookmarks