Click here to Skip to main content
15,891,375 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have youtube video in asp.net page. I want right click off so that nobody can download it. plz help me. I have tried
XML
<script language="javascript" type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
    </script>
    <script type="text/javascript" language="javascript">
        $(function () {
            $(this).bind("contextmenu", function (e) {
                e.preventDefault();
            });
        });
    </script>

this in head section of my page. It is preventing right click on other things but not on video.
Posted
Updated 23-Feb-13 22:44pm
v2
Comments
ParthasarathyBalan 18-Nov-19 6:51am    
I need to do the same thing, did you find the solution?

1 solution

Hi Dhanashree

Please refer to the below link:
http://stackoverflow.com/questions/9756837/prevent-html5-video-from-being-downloaded-right-click-saved[^]

Regards
Willington
 
Share this answer
 

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