Determines whether the page in the iframe is loaded

  • 2020-03-30 03:17:51
  • OfStack

 
//To determine whether the iframe is loaded, RMid is the ID of the iframe
document.getElementById("RMid").onload = function () { 
alert(" loaded "); 
} 

//AddReceipt2 method in the parent frame action iframe page
window.frames["RMid"].AddReceipt2(); 

Related articles: