Auto start print html page using javascript

后端 未结 7 2343
渐次进展
渐次进展 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

    Use this script

     <script type="text/javascript">
          window.onload = function() { window.print(); }
     </script>
    
    0 讨论(0)
提交回复
热议问题