title: SCRIPT5: Access is denied in IE9 on file upload
body: <p>When posting a form with a file upload box using <code>document.forms[0].submit()</code> on ie 9 we get an error that says: <code>SCRIPT5: Access is denied</code></p>
  
  <p>If I click a few more times it works fine.</p>
  
  <p>As a work around I've caught the error and try a few more times which seems to work just fine.</p>
  
  <p>Is there any explanation on this? The code has worked for years on all the other popular browsers.</p>
  
  <p>The code also works fine in IE9 if the browser is set to IE9 compatibility mode, but that is not something we have general control over.</p>
  
  <p>I've seen references to <code>XMLHTTP</code> being an issue and we do execute a <code>XMLHTTP</code> call but it happens before the button to submit is clicked.</p>