testIframe.html
<script>
function show(){
var zdq = document.frames.frame1.document.all.textAreaId.value;
alert("xx:"+zdq);
}
</script>
<iframe name="fra" id="frame1" src="test.html"></iframe>
<input type="button" onClick="show();" value="clickMe"/>
test.html
<table id="tableId" name="shiyizhu">
<input name="nameDao" id="nameId" value="zhudaoqin"></input>
<textarea id="textAreaId">
zhudaoqin dao<br> ci yi you!<br>
<hr color="red"><a href="www.qq.com">qq</a>
</textarea>
</table>