If you want to update the iframe
content using html then you should first find the body
element inside the iframe
and then append the required markup.
$(document).ready(function() {
$('#prev').contents().find('body').html('<div> blah </div>');
});
Working demo – http://jsfiddle.net/ShankarSangoli/a7r9L/