- <script language="javascript">
- var checkSubmitFlg = false;
- function checkSubmit() {
- if (checkSubmitFlg == true) {
- alert( "Querying.." );
- return false;
- }
- checkSubmitFlg = true;
- setTimeout(function() {
- checkSubmitFlg = false;
- }, 5000);
- return true;
- }
- </script>
- <form method=post action="/search.jsp#m" target="_blank"
- onsubmit="return checkSubmit();">
- <input value="小说城" type="text" name="name" size="35" maxlength="10">
- <input type="submit" id="submitInput"/>
- </form>
js prohibits repeated submission of code within 5 seconds
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326739894&siteId=291194637
Recommended
Ranking