Hide Page Content When Printing a Page

Sometimes, we are disabled editing option in a page like [select, copy and paste] also right click disabled because of no one can copied our data. We have to also take care about printing option even disabled print option or hide page content when printing page. There is simple solution for how to hide page content when printing a page.

<style media="print" type="text/css">
body {display:none;visibility:hidden;}

Disabled selection

document.onselectstart = new Function(‘return false’);
function dataSelect(evt){return false;}
document.onmousedown = dataSelect;