Disable print preview in Chrome

前端 未结 1 1689
感动是毒
感动是毒 2020-12-10 16:10

Is there a way to disable the print preview in Chrome using javascript? I need to open a pop-up in a web application with some text to print; in this pop-up I have the follo

相关标签:
1条回答
  • 2020-12-10 16:42

    Is there a way to disable the print preview in Chrome using javascript?

    No (through javascript). Google like every other company, likes to keep a consistent user experience. If programmers were able to change how chrome worked on different pages beyond html, that would be a poor user experience.

    now, what happens is that the print preview page behaves like a modal dialog: I cannot navigate anymore in the application that has opened the print page (even though the links are clickable).

    Instead, you could have a new window open with the same data and hava javascript do a print. The previous window would work normally (assuming the new window doesn't open in a new tab because of add-ons/configuration).

    0 讨论(0)
提交回复
热议问题