stephenm93
MIS
Hi all. I know very little about JS, but I'm looking to add to this code that sets the cursor focus on my login form. I would like to append a domain (e.g. @company.com) to the "loginname" form field after the focus changes to the "password" form field. Can anyone help please?
<!--
if (document.login.loginname.value == ""
{
document.login.loginname.focus()
} else {
document.login.password.focus()
}
function focuspwd()
{
document.login.password.focus();
return(true);
}
function focusloginbutton()
{
document.login.loginbutton.focus();
return (true);
}
//-->
<!--
if (document.login.loginname.value == ""
document.login.loginname.focus()
} else {
document.login.password.focus()
}
function focuspwd()
{
document.login.password.focus();
return(true);
}
function focusloginbutton()
{
document.login.loginbutton.focus();
return (true);
}
//-->