title: Issues disabling a button on IE
body: <p>I'm currently having an issue disabling a button on IE.</p>
  
  <p>The issue should be simple to fix... I want a button disabled while a function is running but for some reason on IE the button is never disabled... I've tried two approached both of them work on Chrome and FF but I can't get it to work on IE...</p>
  
  <pre><code>document.getElementById('printImage').setAttribute('disabled', true);
  
  document.getElementById('printImage').disabled = true;
  </code></pre>
  
  <p>Additionally if I go on the developer tools on IE and manually set the disabled attribute it does work so I have no idea what's going on.</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Ok so the issue wasn't on setting the attribute.... the issue is that basically I do this: First I disable the button, then I open a new window using window.open, after that I do so random stuff and finally I do window.focus then window.print() and lastly I do window.close() an after all that I re enable the button but for some reason IE enables it back on even if the new opened window is still open... This works fine in Chrome as it waits for the new window to close before enabling the button again </p>
  
  <p>Thanks for any help you can provide!</p>