试了好多写法
document.getElementById("iframe1").document.body.innerHTML;得到的是整个页面的INNERHTML
只想得到IFRAME1里面的内容。
firefox下是 document.getElementById("iframe1").contentWindow.document.body.innerHTML;
IE下该怎么写
document.getElementById("iframe1").document.body.innerHTML;得到的是整个页面的INNERHTML
只想得到IFRAME1里面的内容。
firefox下是 document.getElementById("iframe1").contentWindow.document.body.innerHTML;
IE下该怎么写
document.getElementById("iframe1").document.documentElement.innerHTML;
<iframe name="myfame" onload="alert(window.frames.myframe.document.body.innerHTML)" ...></iframe>