<form action="http://google.com">
<input type="submit" onclick="javascript:this.disabled='disabled';return true">
</form>
It works in Firefox, but not in IE8, Safari (It should forward me to Google's site, it but doesn't happen.). Why?
<form action="http://google.com">
<input type="submit" onclick="javascript:this.disabled='disabled';return true">
</form>
It works in Firefox, but not in IE8, Safari (It should forward me to Google's site, it but doesn't happen.). Why?
You don't need the javascript: pseudoprotocol. This should work:
onclick="this.disabled=true"
and you don't need to return true, that'll happen automatically.
Try this instead:
<input type="submit" onclick="this.disabled='disabled';form.submit()">
Edit: Added form.
as per wamp's comment.