So I'm trying to disable a button while javascript is processing, then re-enable it when the javascript is done. The code below works in every browser I've tried except for IE7. In IE7 it just seems to ignore the disable and re-enable and looks like it's still enabled the whole time. So how can I get the correct behavior in IE7?\[code\] <script> function doSomething() { document.getElementById("myButton").disabled = true; ...do stuff and put results in result div... document.getElementById("myButton").disabled = false; } </script> <form onsubmit="doSomething(); return false;"> <input type="submit" id="myButton" value="http://stackoverflow.com/questions/15646347/Do Stuff"/> </form> <div id="results"></div>\[/code\]