I have the following iframe code that is transmitted to a page via AJAX:
<iframe sandbox="allow-forms allow-scripts" id="iframe-content" src="http://www.example.com" scrolling="yes" style="padding-top:40px;border:0;position:fixed;top:0;left:0;right:0;bottom:0;width:100%;height:100%;background-color:#74A82A;"></iframe>
It is then written to the page like this:
$("#bottom").html(data);
I've inspected the page and it is loading the new code successfully into the div.
But for some reason it isn't loading the page? The Iframe just displays the green background color.
How can I get this iframe to load the page?
Ideally I'd like to transmit all the iframe code because there are different versions of iframes that I need to create for different scenarios.