如何在youbrube上禁用webbrowser中的右键单击 [英] how to disable right click in webbrowser for youtube

查看:73
本文介绍了如何在youbrube上禁用webbrowser中的右键单击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


i有一个webbrowser,它显示来自youtube的剪辑,我想禁用右键单击我可以为webbrowser做但是当我右键单击我的webbrowser中的youtube剪辑时,它有一个右键菜单如何我可以禁用吗?

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?

推荐答案

你必须阅读播放器。基本上,您必须使用时髦的URL对HTML页面进行编码以链接到YouTube视频。阅读此处 [ ^ ]。



你可能根本无法禁用菜单!



我可以告诉你,你的应用程序代码不能阻止播放器显示上下文菜单。
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.


这篇关于如何在youbrube上禁用webbrowser中的右键单击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆