我希望在用户输入提交后页面不会更改。
<script src="doAction.js" language="Javascript" type="text/javascript"></script>
<form name = "ex4Param" id="ex4Param" method="post" onsubmit="doAction();" >
<fieldset>
<legend>Input section</legend>
Query Sequence:<br/>
<td><textarea rows="5" cols="84" id="enhancers" name="charSequence"></textarea></td>
<form/>
答案 0 :(得分:1)
onsubmit="return doAction();"
在doAction中:
return false