title: (javascript) onClick="form.submit(); doesn't work on IE & Opera
body: <p>I have a code (see it below). It works perfectly in Firefox: it saves submitted information after clicking <strong>__JL_SAVE</strong> button and keeps user on same page.
  But in Internet Explorer &amp; Opera it only redirects to index page (index.php) and doesn't save submitted information. 
  What can I do for solving this problem? Thanks.</p>
  
  <p>Here is my code: </p>
  
  <pre><code>&lt;form action="index.php" id="mosForm" method="post" enctype="multipart/form-data"&gt;
  
      &lt;fieldset&gt;
          &lt;legend&gt;&lt;?=__JL_ABOUT_MYSELF?&gt;&lt;/legend&gt;
          &lt;span class="a" onclick="showHideLegend('about_myself_1')"&gt;&lt;?=__JL_EDIT_BLOCK;?&gt;&lt;/span&gt;
          &lt;div id="about_myself_descr" style="display: block"&gt;&lt;?=__JL_SELF_DESCR;?&gt;&lt;/div&gt;
          &lt;div id="about_myself_1" style="display: none"&gt;&lt;?php include "html/about_myself_fill.php"?&gt;&lt;/div&gt;
          &lt;div id="about_myself_2""&gt;&lt;?php include "html/about_myself_show.php"?&gt;&lt;/div&gt;
      &lt;/fieldset&gt;
  
      &lt;fieldset&gt;
          &lt;legend&gt;&lt;?=__JL_ABOUT_MYSELF?&gt;&lt;/legend&gt;
          &lt;span class="a" onclick="showHideLegend('type_1')"&gt;&lt;?=__JL_EDIT_BLOCK;?&gt;&lt;/span&gt;
          &lt;?php if ($typ_block) {?&gt;
              &lt;?php /* &lt;input type="checkbox" id="jl_type_block" name="jl_type_block" &lt;?php if ($roon_type_block) echo 'checked ';?&gt; /&gt; */ ?&gt;
              &lt;input type="checkbox" id="jl_type_block" name="jl_type_block" disabled &lt;?php  echo 'checked ';?&gt; /&gt;
              &lt;label for="jl_type_block"&gt;&lt;?=__JL_ON_BLOCK?&gt;&lt;/label&gt;
          &lt;?php } else {
              echo __JL_OFF_BLOCK;
          }?&gt;
  
          &lt;div id="about_myself_descr" style="display: block"&gt;&lt;?=__JL_SELF_DESCR;?&gt;&lt;/div&gt;
  
          &lt;div id="type_1" style="display : none"&gt;
              &lt;?php include "html/type.php"?&gt;
          &lt;/div&gt;
          &lt;?php if ($typ_block) { ?&gt;
              &lt;div id="type_2"&gt;
                  &lt;?php include "html/type_show.php"?&gt;
              &lt;/div&gt;
          &lt;?php } ?&gt;
          &lt;/fieldset&gt;
  
          &lt;fieldset&gt;
              &lt;legend&gt;&lt;?=__JL_INTEREST?&gt;&lt;/legend&gt;
              &lt;span class="a" onclick="showHideLegend('interest_1')"&gt;&lt;?=__JL_EDIT_BLOCK;?&gt;&lt;/span&gt;
              &lt;?php if ($interest_block) {?&gt;
                  &lt;input type="checkbox" id="jl_interest_block" name="jl_interest_block" disabled &lt;?php echo 'checked ';?&gt; /&gt;
                  &lt;label for="jl_interest_block"&gt;&lt;?=__JL_ON_BLOCK?&gt;&lt;/label&gt;
              &lt;?php } else
                  echo __JL_OFF_BLOCK;
              ?&gt;
              &lt;div id="interest_descr" style="display:block"&gt;&lt;?=__JL_INTEREST_DESCR;?&gt;&lt;/div&gt;
              &lt;div id="interest_1" style="display:none"&gt;
                  &lt;?php include "html/interest.php"?&gt;
              &lt;/div&gt;
              &lt;?php if ($interest_block) { ?&gt;
                  &lt;div id="interest_2"&gt;
                  &lt;?php include "html/interest_show.php"?&gt;
                  &lt;/div&gt;
              &lt;?php } ?&gt;
          &lt;/fieldset&gt;
  
  
              &lt;input type="submit" name="save" value="__JL_SAVE" onClick="mosForm.submit();" /&gt;
              &lt;input type="hidden" name="option" value="com_joomlove" /&gt;
              &lt;input type="hidden" id="task" name="task" value="save_info" /&gt;
              &lt;/form&gt;
  </code></pre>
  
  <p>Full source available here: <a href="http://narkoz.pastebin.com/f4f036f5" rel="noreferrer">http://narkoz.pastebin.com/f4f036f5</a></p>