title: How to make a window position to bottom on submit event?
body: <p>I got a page with few drop down fields and when I submit the page it returns with a data from mysql just below the fields. I want to make this page positioned to bottom when the user clicks the submit button. Currently I tried the below script:</p>
  <pre><code>function md()
  {
  //window.location.hash=&quot;code&quot;;
  window.scrollTo(0, document.body.scrollHeight);
  }
  </code></pre>
  <p>This works in Mozilla, but not in IE. Is there any other alternative for the above code? My submit button has an onclick event which calls two javascript functions:</p>
  <pre><code>onClick='selectAllOptions(&quot;countryRF&quot;);md();return false;'
  </code></pre>
  <p>So in IE while I click its coming to bottom but when data appear its back to top again?
  Please help me!</p>