-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
  • 81,827
  • 26
  • 193
  • 197
prabin badyakar
  • 1,636
  • 2
  • 16
  • 24

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,116
  • 1
  • 11
  • 22