Last Updated: February 25, 2016
·
1.515K
· erivello

Inject HTML into an iframe with jQuery

var contents = $('iframe').contents();
var body = contents.find('body');

$('<div>foo bar</div>').appendTo(body);