Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Rani Singh   on Apr 26 In Java Category.

  
Question Answered By: Luz Hayes   on Apr 26

The most simple way is to disable button  after click. To do this, add JavaScript event "onclick" like below:

<form>
<input id="submitButton" type="submit" value="Button" onclick="disableButton()"/>
</form>

<script type="text/javascript">
function disableButton()
{ document.getElementById("submitButton").disabled = true; }
</script>

If you need framework specific solutions, please let us know which framework do you use.
For example Struts2 has tokens to avoid this situations.

Share: 

 

This Question has 5 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Serveral Clicks On a Button Or get search suggestion and latest updates.


Tagged: