Home > Web Front-end > JS Tutorial > js calls the browser printing module to trigger a custom function by clicking the button_javascript skills

js calls the browser printing module to trigger a custom function by clicking the button_javascript skills

WBOY
Release: 2016-05-16 16:55:00
Original
1619 people have browsed it

The main content of this article:

If you use the print button that comes with the browser, you cannot perform other printing-related operations, such as passing the number of prints, etc. Therefore, you need to retain the browser printing function and assign it to the button you added. You can trigger a custom function when the button is clicked.

Copy code The code is as follows:




Copy code The code is as follows:


 
 
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template