首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

单击检测按钮如何不弹出窗口呢

2012-09-08 
单击检测按钮怎么不弹出窗口呢?VBScript code%@LANGUAGEVBSCRIPT CODEPAGE936%htmlheadscrip

单击检测按钮怎么不弹出窗口呢?

VBScript code
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%><html><head><script language="vbscript">function aaa()a1=shenfenzheng1.valueif a1 = "" thenmsgbox "不能为空。"end ifend function</script><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title></title></head><body><form name="form1" method="post" action="">  <input name="shenfenzheng1" type="text" id="shenfenzheng1">  <input type="submit" name="Submit" value="检测" onClick="aaa()"></form></body></html>


[解决办法]
HTML code
<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>新建网页 2</title></head><body><%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%><html><head><script language="vbscript">function aaa()a1=document.getElementById("shenfenzheng1").valueif a1 = "" thenmsgbox "不能为空。"end ifend function</script><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title></title></head><body><form name="form1" method="post" action="">  <input name="shenfenzheng1" type="text" id="shenfenzheng1">  <input type="submit" name="Submit" value="检测" onClick="aaa()"></form></body></html></body></html> 

热点排行
Bad Request.