To prevent clicking a button more than once before it is loaded. Here is a script to prevent double click.
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript">
window.onbeforeunload = function () {
$("Button[ID=Button2], input[type=submit]").attr("disabled", "disabled");
};
</script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript">
window.onbeforeunload = function () {
$("Button[ID=Button2], input[type=submit]").attr("disabled", "disabled");
};
</script>
No comments:
Post a Comment