Deny website url using javascript

Hello (Deny website url using javascript?)

I am sure there is some simple solution. I have a webapp and I use specific css to print this form, which works great. However, each paper always prints a β€œURL” for the webapp, which I don’t want. I'm not sure, but I believe that a browser that automatically includes this, and not my webapp, as this line does not exist at all, and I believe there is no magic trick to hide this in the print stylesheet :?

This URL is usually printed in the top center or bottom center / bottom right, it depends on the browser

Anyway, hope someone knows, thanks! This sucks!;)

+3
source share
2 answers

You cannot control it, and he suck. One way around this is to create a PDF document for printing. Any document that is downloaded and printed from the client machine, and not from the browser, will not have this problem.

+4
source

Programmatically, you cannot control this. There are options that control this, are part of a specific browser. Therefore, each user will have to change their browser settings to remove the URL from print. Unfortunately, I know, but browsers do not allow you to control them.

+1
source

Source: https://habr.com/ru/post/1765856/


All Articles