Auto start print html page using javascript

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

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

7条回答
  •  天命终不由人
    2020-12-25 10:13

    If what you want is to open a separate window from the web browser you can use this:

      window.open(basePath + "Controller/Route/?ID=" + param, '_blank').print();
    

提交回复
热议问题