Auto start print html page using javascript

后端 未结 7 2359
渐次进展
渐次进展 2020-12-25 09:35

Is there anyway to automatically run javascript:window.print() when the page finishes loading?

7条回答
  •  星月不相逢
    2020-12-25 10:22

    The following code must be put at the end of your HTML file so that once the content has loaded, the script will be executed and the window will print.

    
    

提交回复
热议问题