I have a submit button at the end of the form.
I have added the following condition to the submit button:
onClick=\"this.disabled=true; this.value=\'
Using JQuery, you can do this..
$("#submitbutton").click( function() { alert("Sending..."); window.location.replace("path to url"); } );