没ie5,你试试这样行不
<iframe id=frame1></iframe><INPUT TYPE="button" value=gethtml onclick="alert(frame1.document.body.innerHTML)">
<iframe id=frame1></iframe><INPUT TYPE="button" value=gethtml onclick="alert(frame1.document.body.innerHTML)">
(frame1.document==document)==true
<iframe src="ww.htm" id="aFrame"></iframe>
</body>
window.frames["iframeName"].document.documentElement.outerHTML