There are two options for solving this problem.
1) Using "return false"; double click event expression. Example:
<button id="your button id" onclick="yourfuntion()" ondblclick="return false;" >My Button</button>
2) / .
:
<button id="your button id" onclick="yourfuntion()">My Button</button>
<script>
function yourfuntion() { document.getElementById("your button id").disabled = true;
document.getElementById("your button id").disabled = false;}
</script>