Solved

iframe not work with google

Posted on 2014-09-11
2
206 Views
Last Modified: 2014-09-11
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
Comment
Question by:coerrace
2 Comments
 
LVL 82

Accepted Solution

by:
Dave Baldwin earned 500 total points
Comment Utility
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
 

Author Closing Comment

by:coerrace
Comment Utility
OK
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article discusses four methods for overlaying images in a container on a web page
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now