title: Added HTML to iframe causes page to reload
body: <p>I have got the following HTML code:</p>
  
  <pre><code>&lt;iframe id="A1B2C3D4E5" frameborder="no" onload="ajaxStandardCall('/myservlet')" style="height:100%;width:100%;border:solid silver 1px;;"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>In the javascript method, I have;</p>
  
  <pre><code>function ajaxStandardCall(urlString){
       $.ajax({
              type: "POST",
              dataType:'html',
              url: urlString ,
              success: function(msg){
                  $("#A1B2C3D4E5").contents().find('html').html(msg);
              },
              failure:  function(msg) {
                  $("#A1B2C3D4E5").contents().find('html').html(msg);
              }
       });
  }
  </code></pre>
  
  <p>What is does is that it get whatever HTML returned from the servlet and set it as the HTML of the iframe.</p>
  
  <p>However, when I run this, it shows corrected result page but immediately goes to blank page. It looks to me that it make some other requests to refresh the page.</p>
  
  <p>There is no reload method etc in the return HTML. Is there any obvious mistake of the above code that causes this?</p>
  
  <p>Many thanks</p>