有个问题,如果你调用了onmouseover属性,当我确定要点击它之后,该怎么办。。
Archi丶Reborn
2014-11-05
2 回答
<!DOCTYPE HTML>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> 鼠标经过事件 </title>
<script type="text/javascript">
function message(){
var abc=document.getElementById("123").value;
if(abc !=null){}
else{alert("请输入密码后,再单击确定!");}
}
function write1(){
document.write("请问你能看到我么?")
}
</script>
</head>
<body>
<form>
密码:<input id="123" name="password" type="password" >
<input name="确定" type="button" value="确定" onmouseover="message()" onclick="write1()"/>
</form>
</body>
</html>举报
0/150
提交
取消