jquery获取父窗口iframe的body值
iframe框架代码:
</head>
<frameset rows="*,30" frameborder="no" border="0" framespacing="0">
<frameset rows="*" cols="155,*" id="frame">
<frameset rows="*" cols="155,*" id="frame">
<frame src="${ctx}/backcontrol/weekly/weekly!left.action" name="leftFrame" noresize="noresize" marginwidth="0" marginheight="0" frameborder="0" scrolling="auto" >
</frameset>
<frameset rows="*" cols="345,*" id="frame">
<frame src="${ctx}/backcontrol/weekly/weekly!right.action" name="rightFrame" id="rightFrame" marginwidth="0" marginheight="0" frameborder="0" scrolling="yes">
<frame src="${ctx}/backcontrol/weekly/weekly!right_main.action" name="right_mainFrame" id="right_mainFrame" marginwidth="0" marginheight="0" frameborder="0" scrolling="no">
</frameset>
</frameset>
<frame src="${ctx}/backcontrol/weekly/weekly!bottom.action" noresize="noresize" frameborder="0" name="bottomFrame" marginwidth="0" marginheight="0" scrolling="no">
<noframes>
<body>
<input type="text" name="kkk" id="kkk" value="fda" ></input>
</body>
</noframes>
</frameset>
javascritp代码
1 $(parent.window.frames["right_mainFrame"].document.body).html()
输出效果:

posted on 2011-10-14 15:37 阳光总在风雨后001 阅读(4560) 评论(0) 收藏 举报
浙公网安备 33010602011771号