Created
July 27, 2010 11:45
-
-
Save antz29/492113 to your computer and use it in GitHub Desktop.
Setting the height of an IFRAME onload.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
<h1>Loading...</h1> | |
<h1>Loading...</h1> | |
<h1>Loading...</h1> | |
<h1>Loading...</h1> | |
<h1>Loading...</h1> | |
<h1>Loading...</h1> | |
<h1>Loading...</h1> | |
<h1>Loading...</h1> | |
<h1>Loading...</h1> | |
<h1>Loading...</h1> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script> | |
<script type="text/javascript"> | |
$(function() { | |
$(parent.document).find('#container').height($(document).height() + 10); | |
}); | |
</script> | |
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<iframe id="container" src="frame.htm" width="800" height="50" scrolling="no" frameborder="1"></iframe> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment