<div class="codetitle"> <span><a style="CURSOR: pointer" data="65470" class="copybut" id="copybut65470" onclick="doCopy('code65470')"><u>複製程式碼</u></a></span> 程式碼如下:</div> <div class="codebody" id="code65470"> <br>//判斷iframe是否載入完成,RMid為iframe的ID document.getElementById("RMid").onload = function () { <br>alert("載入完成"); <br>} <br><br>//在父框架操作iframe頁面的AddReceipt2方法<br>window.frames["RMid"].AddReceipt2(); <br><br> </div>