这是02页:
iframe_content.php
Some content is here.
iframe.php
<iframe id="sumon_iframe" src="iframe_content.php"></iframe>
<script language="JavaScript" type="text/javascript">
var iframe_id=document.getElementsByTagName('iframe')[0].id; //i get it perfectly
var content=iframe_id.body.innerHTML; //i don't get value
alert(content);
</script>
如何使用 Javascript 获取 iframe.php 页面中的iframe
's innerHTML
( )?Some content is here