Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<!DOCTYPE html>
<script type="text/javascript" src=""></script>
<script type="text/javascript">
$("iframe").load( function () {
var c = (this.contentWindow || this.contentDocument);
if (c.document) d = c.document;
var ih = $(d).outerHeight();
var iw = $(d).outerWidth();
height: ih,
width: iw
iframe {border:0; overflow:hidden;}
Testing iframe resizer
<h4>Checking <a href="">ddlab's answer</a> for resizing cross platform iframe without access to the external server </h4>
removing style width doesn't help either. Error returned in script.<br />
<iframe src="" style="width:700px; height:500px">
<footer>Thank you for watching and stay tuned to middle C with Pashute
<br />Note: Removing the footer doesn't help</footer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.