function check_form() {
error=0
answer1 = document.test.number
if ( answer1.value == "" ) {
error++
alert("請輸入數字")
answer1.focus()
}
if (error==0) document.test.submit()
}
沒有留言:
張貼留言