日期:2014-05-16  浏览次数:20325 次

js取得iframe中的表单的表单值

<table width="100%" height="94%" border="0" align="center" cellpadding="0" cellspacing="1"class="file_frame tableborder">
? <tr>
??? <td width="25%" align="left" class="altbg3">? <iframe src='node/nodeAction!nodeTree.action?url=/wlw/audit/auditAction!onlineWsList.action' name="leftFrame" width="100%" marginwidth="0" height="100%" marginheight="0" scrolling="auto" frameborder="0" class="frame_5px" id="leftframe" framespacing="0"> </iframe></td>
??? <td width="75%" align="right" class="altbg3"> <iframe src='audit/auditAction!onlineWsList.action' name="rightFrame" width="100%" height="100%" marginwidth="0" marginheight="0" scrolling="auto" frameborder="0" id="leftframe" class="frame_5px" framespacing="0"> </iframe></td>
? </tr>
</table>

-----------------------------------------------代码-------------------------------------------------------

var items = window.frames['rightFrame'].document.getElementsByName("selectedItems");