Click here to Skip to main content
15,867,834 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi,

I have been struggling to get the right click disabled in the embed tag. I don't want the user to download the PDF from the embed tag.

Please suggest me a solution.

Regards
Varun

What I have tried:

I tried disabling the context menu click on the page but it is working outside the embed tag, not on the embed tag.
Posted
Comments
Richard Deeming 24-Apr-18 10:40am    
If the user can view the PDF, then the user can download the PDF. There's nothing you can do to stop it.
Varun Sareen 27-Apr-18 4:59am    
ok thanks..but i wanted atleast dont give him/her the option to right click on PDF in embed tag. If you can provide some solution, then please let me know.
ParthasarathyBalan 18-Nov-19 6:43am    
Hi Varun Sareen.
I need to do the same thing, did you find the solution?
Varun Sareen 27-Dec-19 4:54am    
No dear

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900