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.