How to make a page print to printer just once
Posted
by
menislici
on Stack Overflow
See other posts from Stack Overflow
or by menislici
Published on 2011-11-12T17:46:49Z
Indexed on
2011/11/12
17:51 UTC
Read the original article
Hit count: 200
I have a basic html page generated through php and it prints to a printer after a link click using Ben Nadel's print plugin. However, I don't want the user to print the page again. I tried setting the 'print' link to a negative z-index using jquery after it's being clicked, but the user can refresh the page and reuse the link so it would print again. I also know that I can somehow disable the refresh feature, by modifying what F5 does, but that would't save the day since the user can refresh the page through the url bar, and I can't remove/hide, it as much as I know. It also runs on localhost so the user client and server are on the same side. Even the browser doesn't matter since I could use the one that fits this case.
© Stack Overflow or respective owner