I want both these functions to run when they submit their password:
function formValidation(PasswordForm)
{
//txtPassword=document.PasswordForm.txtPassword;
with (PasswordForm)
{
if (txtPassword.value.length < 6)
{
alert('Your password must be at least 6 characters long.')
}
if (txtConfirmPassword.value.length < 6)
{
alert('Your confirmation password must be at least 6 characters long.')
}
}
}
function EditPassword()
{
//This Function will check the validity of the text in txtCompanyName
//If it's valid, then it will pass the name to basEditCompanyName.asp
var strPassword;
strPassword = document.form3.txtPassword.value;
location="basEditCompanyName.asp?strName=" + strCompanyName;
}
How do I set the onClick in the button to carry out 2 different things at once?
function formValidation(PasswordForm)
{
//txtPassword=document.PasswordForm.txtPassword;
with (PasswordForm)
{
if (txtPassword.value.length < 6)
{
alert('Your password must be at least 6 characters long.')
}
if (txtConfirmPassword.value.length < 6)
{
alert('Your confirmation password must be at least 6 characters long.')
}
}
}
function EditPassword()
{
//This Function will check the validity of the text in txtCompanyName
//If it's valid, then it will pass the name to basEditCompanyName.asp
var strPassword;
strPassword = document.form3.txtPassword.value;
location="basEditCompanyName.asp?strName=" + strCompanyName;
}
How do I set the onClick in the button to carry out 2 different things at once?