81,092
社区成员
发帖
与我相关
我的任务
分享
<script>
function forward(){
alert("Pressed");
return false;
}
</script>
<form action="my2.jsp" onsubmit="forward()">
<input type="submit" value="Submit this form"/>
</form>
<script>
function forward(){
alert("Pressed");
document.form1.sumbmit();
return true;
}
</script>
<form name="form1" action="my2.jsp">
<input type="submit" value="Submit this form" onclick="forward()"/>
</form>
<script>
function forward(){
alert("Pressed");
return true;
}
</script>
<form action="my2.jsp" onsubmit="forward()">
<input type="submit" value="Submit this form"/>
</form>