title: Internet Explorer - Javascript submit error
body: <p>I have forms with submit buttons that use javascript. The code looks following:</p>
  
  <pre><code>&lt;form action="settings.php" method="post" id="myform" class="forms"&gt;
  ...some form fields here
  &lt;button type="submit" name="submit_ok" value="Save" onClick="document.myform.submit();"&gt;Save&lt;/button&gt;
  </code></pre>
  
  <p>However, IE 10 (Win7 x64) displays this error when trying to submit form:</p>
  
  <p>"Unable to get property submit of undefined or null reference"</p>
  
  <p>All other browsers don't display any errors. If I click Yes when IE asks if I want to continue running scripts on this page, everything works well, but I need to remove this error badly.</p>