title: Simple iframe issue
body: <p>After submitting a form into an iframe  my page isn't reloaded (that's what I want) but it scroll up to the top.
  How can I prevent that?</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      function showThanksDiv(){
        document.getElementById("myThanksDiv").style.visibility = "visible";
      }
  &lt;/script&gt;
  
  &lt;form id="contacts-form" method="post" action="email.php" target="myiframe" &gt;
  &lt;fieldset&gt;
  &lt;div class="alignright"&gt;&lt;a href="#" onClick="document.getElementById('contacts-form').submit()"&gt;Send Your Message!&lt;/a&gt;&lt;/div&gt;
  &lt;/fieldset&gt;
  &lt;/form&gt;
  
  &lt;iframe  name="myiframe" id="myiframe" src="" width=1 height=1 style="visibility:hidden;position:absolute;bottom:2px;"&gt;&lt;/iframe&gt;
  
  &lt;div id="myThanksDiv" style="width:200px;height:150px; border:1px solid black; background:#fff;display:block;padding:20px; visibility:hidden"&gt;
  Thanks! &lt;br /&gt;
  Your message was sent. &lt;br /&gt;
  &lt;div class="alignright"&gt;&lt;a href="#!" onClick="javascript:hideThanksDiv()"&gt;Discard Message!&lt;/a&gt;&lt;/div&gt;
                &lt;/div&gt;
  </code></pre>
  
  <p>in email.php:</p>
  
  <pre><code>echo '&lt;script type="text/javascript"&gt;parent.showThanksDiv();
  &lt;/script&gt;';
  </code></pre>
  
  <p>When I click submit button I am always redirected to the top of the page (not reloaded). why?</p>
  
  <p>Bascially the issue is that the echo from the php script will call showThanksDiv and scroll to top. How can I prevent that?</p>
  
  <p>Thanks,</p>