Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 225
  • Last Modified:

iframe not work with google

Hello I have this html with an iframe:

<!DOCTYPE html>
<html>
<body>

<iframe src="http://www.google.com" width="200" height="200"></iframe>



</body>
</html>

Open in new window


   But is not displayed the iframe, however if I call www.disney.com on the iframe works, like this:

<!DOCTYPE html>
<html>
<body>

<iframe src="http://www.disney.com" width="200" height="200"></iframe>



</body>
</html>

Open in new window


Why not work for google and for disney yes? Also www.yahoo.com not work why happen that and how can be solved?
Thank you
0
coerrace
Asked:
coerrace
1 Solution
 
Dave BaldwinFixer of ProblemsCommented:
Some web pages including some of my own will prevent you from displaying them in a frame or iframe.  There is nothing you can do to change that.  These sites do not want you to put their content in your iframe so they block your ability to do that.
0
 
coerraceAuthor Commented:
OK
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now