Determine whether browser supports printing

前端 未结 3 1841
野性不改
野性不改 2020-12-03 09:15

I think the answer to this is almost certainly \"no\", because I\'ve done a little testing and searching around, but is there any trick to detect whether window.print(

3条回答
  •  一生所求
    2020-12-03 09:39

    The beforeprint and afterprint events may help, but I'm not sure about browser support.

    Edit: Webkit does not support them

提交回复
热议问题