title: Question about javascript document.forms for ID and name attribute in HTML forms in some IE8 Browser
body: <p>We have a old J2EE struts application which only has ID in the form, and uses document.forms("theName") to get the form object in the javascript. The html page is XHTML.</p>
  
  <p>It seems works OK in firefox and in most of the IE8 browser, but it fails in some other IE 8 brwosers. The version and subversion of the IE browsers which works and not works could be exactly the same.</p>
  
  <p>We hope to find some IE8 patch to solve the problem without changing the J2EE code/page.</p>
  
  <p>Any suggestion? Thanks.</p>
  
  <p>Here is the testing page, when you click on "Call on button1", the popup works fine in most of the IE8 browser, but failed in some IE8, especially those newly installed IE8.</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script language="JavaScript"&gt;
  function clickFirstButton()
  {
  document.forms["myForm"].button1.click();
  }
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;form id="myForm"&gt;
    &lt;input type="button"
           value="Display alert box"
           id="button1"
           onClick="alert('You clicked the first button11.')"&gt;&lt;br&gt;
  
    &lt;input type="button"
           value="Call on button 1"
           id="button2"
           onClick="javascript:clickFirstButton()"&gt;
  &lt;/form&gt;    
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>