<script> container=top.frames["contenido"].document; pepe=container.getElementsByTagName("html")[0].innerHTML; alert(pepe); </script>