javascript to print contents of only specific

前端 未结 2 1187
隐瞒了意图╮
隐瞒了意图╮ 2021-01-05 05:39

I have tried javascript window.print() It prints the full page content including the print button on the page.

2条回答
  •  Happy的楠姐
    2021-01-05 06:24

    Create an iframe and copy your text into it. then you can call the print-function of this, in the iframe embedded window

    or

    see: String.print()

提交回复
热议问题