-2
<iframe src ="http://google.com" width="400" height="300">
  <p>Your browser does not support iframes.</p>
</iframe>

How can i get this result done?

I know CORS and jsonp are solution for this . But i really dont know how to implement it . I dont have any javascript on my pages . Just normal html pages. If its not possible doing just html codes then how can i achieve my goal using

javascript

or

jquery

.I want to get google.com in my iFrame .

sideshowbarker
  • 72,859
  • 23
  • 167
  • 174
prabin badyakar
  • 1,468
  • 2
  • 13
  • 23

1 Answers1

0

Google is preventing you from embedding their website into your iFrame, since you're not on the same domain (*.google.com).

Also: there are a ton of questions like this. Check this answer in particular -- it's not what you want, but it might be good enough.

Community
  • 1
  • 1
SamuelMS
  • 1,086
  • 1
  • 10
  • 22