9

Contents of iframe works well in chrome but not in firefox. I've disabled add-ons but my iframe is still empty.Both my site and iframe are https.

Below is the code:

  <p><iframe class="display:inline-block;" frameborder="0" height="2622px" scrolling="no" src="https://www.emolument.com/start" width="100%"></iframe></p>  
Ashish Bahl
  • 1,482
  • 1
  • 18
  • 27
Prajila V P
  • 5,027
  • 2
  • 23
  • 36

3 Answers3

2

Try:

<p><iframe style="display:inline-block; height: 2622px" frameborder="0" scrolling="no" src="https://www.emolument.com/start" width="100%"></iframe></p>

Corrected style attribute and declared height as css instead of height attribute.

The height attribute btw should not have 'px'.

Davey
  • 2,355
  • 1
  • 17
  • 18
1

Check that your page housing the iframe is in the same domain as the iframe source. If both are HTTPS, and on different domains, you may have to deal with the same-origin policy.

This is a security feature in most modern browsers that require pages and iframes to be from the same origin to allow scripts and such.

You might check out Ways to circumvent the same-origin policy

0

In my case, it was the server redirect which was not working. I was working locally and the parent site was http and the iframe page was https. Once I switched the parent page to https then the iframe redirect worked in firefox.

dwenaus
  • 3,206
  • 2
  • 27
  • 27