I disabled right click and print option (ctrl+P ) and view source (ctrl+U) using javascript. Because of these restrictions keys U and P are not working.Please give me the solution or any alternative way to disable (ctrl+P and ctrl+U)option.
And here is my javascript code:
for print
if(cc.which == 85)
{
return false;
}
if(cc.which == 80)
{
return false;
}
for right click
status="Right Click Disabled";
function disableclick(event)
{
if(event.button==2)
{
alert(status);
return false;
}
}