Javascript – How to remove URL displayed while printing a web page in PHP

javascriptPHPprinting-web-page

I want to remove URL from page at printing time with PHP is there any way to do this? Actually I don't want to push my clients to change their browser's settings at printing time.

Any help really appreciated!

Best Answer

That is a browser setting, unfortunately you can't change it and it sucks.

Only workaround that I can think of is that you serve PDF file which could be displayed inline if user has PDF plugins installed. In that case you have full control of content and user can print it.