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?
Method to disable right click in PDF file in an asp.net webpage
Â
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.