How to get the cross-domain of HTML in iframe

  printCnt() {
    //1.html
    //2.-sharpprint
    window.document.body.innerHTML = document.getElementById("orbitIframe").contentWindow.document.getElementsByTagName("body").innerHTML;
    window.print();
    //:
    // location.reload();
  }

clipboard.png

what to do

Apr.10,2022
Menu