<script language =vbscript>
function ckcg()
if not isnumeric(document.chgc.txtCNo.value) then
msgbox "请输入正确的课程号!"
document.chgc.txtCNo.value = ""
ckcg = false
exit function
end if
if document.chgc.txtCName.value = "" then
msgbox "请输入正确的课程名称!"
ckcg = false
exit function
end if
if document.chgc.txtCTeacher.value ="" then
msgbox "请输入正确的任课老师!"
ckcg = false
exit function
end if
if not isnumeric(document.chgc.txtCNum.value) then
msgbox "请输入正确的总学时!"
document.chgc.txtCNum.value = ""
ckcg = false
exit function
end if
if not isnumeric(document.chgc.txtCMM.value ) then
msgbox "请输入正确的金额!"
document.chgc.txtCMM.value = ""
ckcg = false
exit function
end if
if not isnumeric(document.chgc.txtCCredit.value ) then
msgbox "请输入正确的学分!"
document.chgc.txtCCredit.value = ""
ckcg = false
exit function
end if
if document.chgc.txtCTime.value ="" then
msgbox "请输入正确的上课时间!"
ckcg = false
exit function
end if
if not isnumeric(document.chgc.txtCStuNum.value) then
msgbox "请输入正确的选课学生总数!"
document.chgc.txtCStuNum.value = ""
ckcg = false
exit function
end if
if document.chgc.txtCDemo.value ="" then
document.chgc.txtCDemo.value = " "
end if
ckcg = true
end function
</script>
<script language="javascript">
function ckdel(){
if(confirm('删除的课程信息将无法恢复,你确定吗?')){
window.close();
return true;
}
else
return false;
}
</script>
Javascript写 innerHTML
document.all("Info").innerHTML = " "
注意innerText innerHTML 的区别
function ckcg()
if not isnumeric(document.chgc.txtCNo.value) then
msgbox "请输入正确的课程号!"
document.chgc.txtCNo.value = ""
ckcg = false
exit function
end if
if document.chgc.txtCName.value = "" then
msgbox "请输入正确的课程名称!"
ckcg = false
exit function
end if
if document.chgc.txtCTeacher.value ="" then
msgbox "请输入正确的任课老师!"
ckcg = false
exit function
end if
if not isnumeric(document.chgc.txtCNum.value) then
msgbox "请输入正确的总学时!"
document.chgc.txtCNum.value = ""
ckcg = false
exit function
end if
if not isnumeric(document.chgc.txtCMM.value ) then
msgbox "请输入正确的金额!"
document.chgc.txtCMM.value = ""
ckcg = false
exit function
end if
if not isnumeric(document.chgc.txtCCredit.value ) then
msgbox "请输入正确的学分!"
document.chgc.txtCCredit.value = ""
ckcg = false
exit function
end if
if document.chgc.txtCTime.value ="" then
msgbox "请输入正确的上课时间!"
ckcg = false
exit function
end if
if not isnumeric(document.chgc.txtCStuNum.value) then
msgbox "请输入正确的选课学生总数!"
document.chgc.txtCStuNum.value = ""
ckcg = false
exit function
end if
if document.chgc.txtCDemo.value ="" then
document.chgc.txtCDemo.value = " "
end if
ckcg = true
end function
</script>
<script language="javascript">
function ckdel(){
if(confirm('删除的课程信息将无法恢复,你确定吗?')){
window.close();
return true;
}
else
return false;
}
</script>
Javascript写 innerHTML
document.all("Info").innerHTML = " "
注意innerText innerHTML 的区别
浙公网安备 33010602011771号