1.解释email.focus()
百度来的
if (validate_required(email,"Email must be filled out!")==false) 如果未填写Email地址,请填写;email.focus();自动定位到email填写栏。
function validate_form(thisform)
{
with (thisform)
{
if (validate_email(email,"Not a valid e-mail address!")==false)
? {email.focus();
? return false}
}
}
</script>
原文:http://yuzhouxiner.iteye.com/blog/2285705