Skip to content

Instantly share code, notes, and snippets.

@treffynnon
Created February 4, 2010 15:19
Show Gist options
  • Save treffynnon/294740 to your computer and use it in GitHub Desktop.
Save treffynnon/294740 to your computer and use it in GitHub Desktop.
jQuery: Accessing the contents of an iFrame
var iFrameBody = '';
$('#iframe').load(function(){
iFrameBody = $(this).contents().find('body');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment