[removed] and [removed] get fired at the same time

前端 未结 3 1698
挽巷
挽巷 2021-01-05 09:51

I have defined onbeforeprint and I modify my html code and now once I finish printing that is on select of print button I want the onafterprint to

3条回答
  •  清酒与你
    2021-01-05 10:01

    Yes, you can, no catch. I have thus implemented in a professional application. Print in Explorer, Firefox, all

    window.onload = PrintMe;
    
    function PrintMe() {
        window.print();
        setTimeout(function () {
        alert("OK");
    // Here you code, for example  __doPostBack('ReturnPrint', '');
        }, 2000);
    }
    

提交回复
热议问题