JavaScript中email.focus()

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>

猜你喜欢

转载自yuzhouxiner.iteye.com/blog/2285705