Method to disable right click in PDF file in an asp.net webpage

Asked By 10 points N/A Posted on -
qa-featured

Which method can I use to disable right click in pdf file in an asp.net webpage in order to avoid any possible editing of the webpage content?

SHARE
Answered By 0 points N/A #154074

Method to disable right click in PDF file in an asp.net webpage

qa-featured

 

You can even disable right click on the entire page using <body oncontextmenu="return false"></body>.

But my advice is to spare the effort , Anyone who wants to mess up your page could bypass that and access the source code of the webpage.

Simply , nothing could be protected on the internet so don't waste your time trying to protect your documents or your source code. It would be just annoying to page visitors.

Related Questions