如果您有HTML
<form name="formname" .... id="form-first"> <iframe id="one" src="iframe2.html"> </iframe></form>
和Javascript
function iframeRef( frameRef ) { return frameRef.contentWindow ? frameRef.contentWindow.document : frameRef.contentdocument}var inside = iframeRef( document.getElementById('one') )inside现在是对文档的引用,因此您可以执行
getElementsByTagName('textarea')任何操作,具体取决于iframesrc中的内容。



