title: can't add google.com as src to an IFrame
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/8700636/how-to-show-google-com-in-an-iframe">How to show google.com in an iframe?</a>  </p>
  </blockquote>
  
  
  
  <p>Why some websites can't be added as source to my iframe</p>
  
  <p>I have this code:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
      &lt;head&gt;
          &lt;script&gt;
          function changeIframe(newLocation){
              document.getElementById("myIframe").src=newLocation;
          }
          &lt;/script&gt;
      &lt;/head&gt;
      &lt;body onload="changeIframe('http://www.example.com')"&gt;
          &lt;div style="width:650px;float:auto;border:1px dotted #cccccc;"&gt;
              &lt;iframe id="myIframe" src="http://www.ebay.co.uk/" width="100%" height=750px marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=1 scrolling=auto&gt;
                &lt;p&gt;Your browser does not support iframes.&lt;/p&gt;
              &lt;/iframe&gt;
          &lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>If i change <a href="http://www.example.com" rel="nofollow noreferrer">http://www.example.com</a> to <a href="http://www.google.com" rel="nofollow noreferrer">http://www.google.com</a> it doesn't show any content. I have tested it with chrome, IE, FF.</p>
  
  <p>Why is that?</p>
  
  <p>Thanks</p>