Skip to content

Instantly share code, notes, and snippets.

@mjj2000
Created March 4, 2013 10:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mjj2000/5081427 to your computer and use it in GitHub Desktop.
Save mjj2000/5081427 to your computer and use it in GitHub Desktop.
Use jQuery to adjust height of iframe according to height of content
// execute script inside iframe
$('#iframe', parent.document).height($(document.body).outerHeight());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment