Answer the question
In order to leave comments, you need to log in
How to go to another page after clicking on the "Print" button?
How can I go to another page when I click on the browser's "print" button? How can I do that? Interested only means or JS or PHP.
Answer the question
In order to leave comments, you need to log in
Well, except maybe a custom button on the page and onclick="print(); goto(href);" ? But it may still be browser dependent. And it is unlikely that it will be possible to distinguish between closing a window and printing.
Well, in general, such a decision to switch to another page looks strange. And if the user does not want to go anywhere?
With the "system" in any way.
You don't need a separate page. You just need to write styles and include them like this:
The trick is in the media attribute.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question