onsubmit 失效 5
<html><head><scripttype="text/javascript">functionckpassword(){if(edit.paw_1.value!=e...
<html>
<head>
<script type="text/javascript">
function ckpassword( )
{
if (edit.paw_1.value!=edit.paw_2.value)
{
//document.write("ddddddd");
alert("\u4e24次输入不一致");
return false;
}
}
</script>
</head>
<body>
<form action="edit.php" method ="post"name="edit" onsubmit="return ckpassword()">
<p align="center"><input type="submit" value="确认">
</form>
</body>
</html>
不出警告框 怎么回事啊 展开
<head>
<script type="text/javascript">
function ckpassword( )
{
if (edit.paw_1.value!=edit.paw_2.value)
{
//document.write("ddddddd");
alert("\u4e24次输入不一致");
return false;
}
}
</script>
</head>
<body>
<form action="edit.php" method ="post"name="edit" onsubmit="return ckpassword()">
<p align="center"><input type="submit" value="确认">
</form>
</body>
</html>
不出警告框 怎么回事啊 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询