As Darin said, the following will work if the iframe uses the same domain as the parent page:
$('#id', window.parent.document).html('write something');
If the parent domain is different from the child domain, you can use something like this: easyXDM
devmatt
source share