Print contents of a modal popup

后端 未结 4 1399
眼角桃花
眼角桃花 2020-12-22 07:26

I have an application that shows a list of items.

The user can click on an item and see its details in a modal popup (centered DIV, shown using JavaScript). I need t

4条回答
  •  甜味超标
    2020-12-22 07:53

    You could redirect to a printable page that has the content of the modal popup. Make sure that page has window.print() in the load event. Once your user reaches that page, you could just flag that.

    What would happen if the user gets there and cancel the print?

提交回复
热议问题