How can I pop-up a print dialog box using Javascript?

后端 未结 8 1430
闹比i
闹比i 2020-12-07 16:55

I have a page with a \"Print\" link that takes the user to a printer-friendly page. The client wants a print dialog box to appear automatically when the user arrives at the

8条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-07 17:51

    window.print();  
    

    unless you mean a custom looking popup.

提交回复
热议问题