Skip to content

Instantly share code, notes, and snippets.

@rapind
Last active August 29, 2015 14:08
Show Gist options
  • Select an option

  • Save rapind/63b66657bac5b222e145 to your computer and use it in GitHub Desktop.

Select an option

Save rapind/63b66657bac5b222e145 to your computer and use it in GitHub Desktop.
Tell the parent frame your size after loading.
<script>
window.onload = function() {
parent.postMessage('height:' + document.body.scrollHeight, "*");
};
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment