F
F
Funny_Cat2015-04-09 15:49:53
Bots
Funny_Cat, 2015-04-09 15:49:53

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

2 answer(s)
I
Ilya, 2015-04-09
@766dt

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.

K
Konstantin Kitmanov, 2015-04-09
@k12th

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 question

Ask a Question

731 491 924 answers to any question