Click here to Skip to main content
16,012,843 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi i have a webbrowser and it show a clip from youtube and i want to disable right click i can do it for webbrowser but when i right click on that youtube clip in my webbrowser it has a right click menu how can i disable it?
Posted
Comments
BillWoodruff 1-Nov-14 7:52am    
Remember that if a technically informed person wants to find the url, they can just open the html source of the page.
Avenger1 1-Nov-14 9:36am    
i know if they right click in there they can and its no matter of url
i don't want to change the page
and i should say i disable all links

1 solution

You have to read up on the player. Basically, you have to code your HTML page to link to the YouTube video using a funky URL. Read up on it here[^].

You might not be able to disable the menu at all!

I can tell you that your application code can NOT prevent the player from displaying a context menu.
 
Share this answer
 
v2

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