Automatically Print Image from Website

前端 未结 9 738
一生所求
一生所求 2020-12-05 05:37

A coworker and I were having a discussion about what is and isn\'t possible within the browser.

Then a question came up that neither of us could answer with certaint

9条回答
  •  半阙折子戏
    2020-12-05 06:30

    You can't bypass the print dialog, as far as I know. That would be a pretty obvious security flaw if the browser allowed that. But you can bring up the print dialog with "window.print()".

提交回复
热议问题