I have this script on my login page where there are two textboxes that collect username and password:
I also have an event that handles the linkbutton1.click event in the code behind. I've got two questions...Why is it beeping when I press enter? And the second is the password dissapears when I tab over to linkbutton1. Anyone know why?
Code:
<SCRIPT LANGUAGE="javascript">
if (document.all)
{
document.onkeydown = function ()
{
var key_enter= 13;
if (key_enter==event.keyCode)
{
document.getElementById('LinkButton1').click()
}
}
}
</SCRIPT>
I also have an event that handles the linkbutton1.click event in the code behind. I've got two questions...Why is it beeping when I press enter? And the second is the password dissapears when I tab over to linkbutton1. Anyone know why?