单击提交后如何使我的HTML页面保留?

时间:2011-05-28 18:47:36

标签: javascript html

我希望在用户输入提交后页面不会更改。

        <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/>

1 个答案:

答案 0 :(得分:1)

onsubmit="return doAction();"

在doAction中: return false