Hi,
I’m adding the login/password fields and a button as part of my home page. The scenario would be the same as your login in the webdeveloper.com website. User just need to give login/password and then press “Enter” key and no need to click the Login button.
I wonder is that done in Javascript? I currently use
function entsub()
{
if(window.event && window.event.keyCode == 13)
{
document.forms[0].page_action.value = “login”;
document.forms[0].submit();
}
else
{
return true;
}
}
but that only works for IE, not for firefox. I’m sure there’s a much better way out there. Can someone give me some advice or post the code there? Really appreciate that.
Joaquin