parthasarathy B

parthasarathy B

  • NA
  • 927
  • 108.5k

Disabling right click event in the PDF loaded in embed tag

Nov 15 2019 5:17 AM
Hi all,
 
I have a loaded the PDF document in the .aspx page using embed tag. In that loaded PDF document, i should disable the right click event, which gives the options to save the document by the end user.
 
usual jquery which disables right click event is not working for this scenerio. any help would be appreciated , thanks in advance.
 
Jquery event
 
  1. $("body").on("contextmenu", function () {  
  2.                return false;  
  3.            }); 
 

Answers (2)