The code copy is as follows:
//Judge whether the iframe has been loaded. RMid is the iframe's ID
document.getElementById("RMid").onload = function () {
alert("Loading completed");
}
//AddReceipt2 method in the parent framework operation iframe page
window.frames["RMid"].AddReceipt2();