1.表单判断函数
function search_check()
{
if (document.quicksearch.btnSltFuntype1.value=="选择/修改"){
alert("-请选择职位类别");
//document.quicksearch.btnSltFuntype1.focus();
return false;
}
2.鼠标指针形状
手形: CURSOR: hand
3. 表单提交回车
<script>
function submits()
{
window.form1.submit()
}
</script>
<form method="POST" action="xxx.asp" name=form1>
<input type=button value="submit now" οnclick=submits()>
4.表单的默认输入值
value="请输入XXX王定军!" οnclick="javascript:if(this.value.substring(0,3)=='请输入') this.value='';"
或者value="请输入XXX!" οnblur="if(this.value=='') this.value='请输入XXX!'" οnfοcus="if(this.value=='请输入XXX!') this.value=''"
</form>
5. go back to the last page
<input type="button" name="Submit2" value="后退" onClick="javascript:window.history.go(-1);">
6. 页面错误则执行
On Error Resume Next
if error.number>0 then
exit do
end if
over