appendChild() doesn't work in IE(6,7) with iframe's parent/child
there's other ways:
1. call a parent's function
2. use innerHTML
i.e.
---bbb.html---
<script type="text/javascript">
window.parent.document.body.innerHTML='<div id="testdiv">bbb</div>';
</script>