<button type="button" onClick="window.location.href='http://mywebsite.com';window.print();return false;">Print</button>
上面的作品,但我想先打印,然後有一個短暫的延遲,然後將用戶發送到指定的頁面。如何在點擊打印按鈕後將用戶發送到頁面
我想這沒有成功:
<button type="button" onClick="setTimeout('window.location.href='http://mywebsite.com', 100);window.print();return false;">Print</button>
您在使用報價時遇到了一些錯誤,請在 – pkachhia