JS:获取框架内容

<iframe id="topNav" src="xx.php"></iframe>
<script>
var topWin = window.top.document.getElementById("topNav").contentWindow;
alert(topWin);
</script>

 

posted @ 2013-03-02 11:07  tinyphp  Views(2139)  Comments(0Edit  收藏  举报