Inject HTML into an iframe with jQuery
var contents = $('iframe').contents();
var body = contents.find('body');
$('<div>foo bar</div>').appendTo(body);
Written by Edoardo Rivello
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Jquery
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#