IFRAME TROUBLE! HELP PLEASE!!!

  • 1
  • Problem
  • Updated 8 years ago
  • Solved
I am trying to put an IFRAME in my website. It keeps on wanting to take me to the actual page and not make it in a frame, still on my website. Please help!!!

iframe src="https://www.google.com/a/ndhmt.com/" name="test2" frameborder="0" height="550" width="900"></iframe
Photo of Nathan Henderson

Nathan Henderson

  • 157 Posts
  • 3 Reply Likes
  • frustrated

Posted 8 years ago

  • 1
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Hello Nathan

I believe it has to do with the https. From what I understand, the page you're trying to put into an iframe needs to have an inherent code that detects that it being in an iframe and will behave accordingly.

Google does not have this particular coding which is why it's being opened up onto a new page.
Photo of Nathan Henderson

Nathan Henderson

  • 157 Posts
  • 3 Reply Likes
Is there any way to change this?
Photo of jeremy

jeremy, Employee

  • 1349 Posts
  • 90 Reply Likes
Hi there Nathan, I got it to work by customizing the following iframe code:

<iframe src ="http://www.google.com&quot; width="100%" height="300">
<p>Your browser does not support iframes.</p>
</iframe>

If you then get asked to re-direct click on "cancel" - I do not know if it will allow you to log in to your email from an iframe though...

I hope this helps.
Photo of jeremy

jeremy, Employee

  • 1349 Posts
  • 90 Reply Likes
sorry - that should have read "http://www.google.com" not "http://www.google.com&quot
Photo of Nathan Henderson

Nathan Henderson

  • 157 Posts
  • 3 Reply Likes
Nope didn't work, owell. Thanks anyways......