<script language="vbscript"> dim p Set p = Document.myfrm function frmobject_onsubmit() sub obj_no_Onblur() '總提示此行有語法錯 p.txt1.value = p.obj_no.value p.txt1.select() p.txt1.focus() exit sub end sub end function </script>
<script language="vbscript"> dim p Set p = Document.myfrm function frmobject_onsubmit() sub obj_no_Onblur() '總提示此行有語法錯 p.txt1.value = p.obj_no.value p.txt1.select() p.txt1.focus() exit sub end sub end function </script> VBScript里function和sub好像不能嵌套使用。
<script language="vbscript"> dim p Set p = Document.myfrm 'function frmobject_onsubmit()要么留function,要么留sub不要嵌套使用。 sub obj_no_Onblur() '總提示此行有語法錯 p.txt1.value = p.obj_no.value p.txt1.select() p.txt1.focus() exit sub end sub 'end function </script>