艺术学院怎么招生:ASP中的focusto是作什么的???

来源:百度文库 编辑:查人人中国名人网 时间:2024/04/26 17:23:10
<script language="VBScript">
sub check()
if frm1.user.value=empty then
msgbox "请输入您的留言昵称!"
focusto(0) <==============================这里是什么意思?
exit sub
end if
if frm1.email.value=empty then
msgbox "请输入您的电子邮件地址!"
focusto(1) <==============================这里是什么意思?
exit sub
end if
if instr(frm1.email.value, "@")=0 then
msgbox "请正确填写您的电子邮件地址!"
focusto(1) <==============================这里是什么意思?
exit sub
end if
if frm1.content.value=empty then
msgbox "请输入您的留言内容!"
focusto(2) <==============================这里是什么意思?
exit sub
end if
frm1.submit
end sub
sub focusto(x) <==============================这里是什么意思?
document.frm1.elements(x).focus() <==============================这里是什么意思?
end sub
</script>

focusto是自定义的函数

document.frm1.elements(x).focus()使该元素获得焦点