Is oncontextmenu cross browser?

拥有回忆 提交于 2020-01-12 14:07:24

问题


window.oncontextmenu = function() {
    return false;
};

Will this work on all major browsers such that the right click will not be initiated?


回答1:


See this quirksmode page for a detailed compatibility table.




回答2:


QuirksMode has a comprehensive chart of support for the event. You can use it to decide if it meets your needs depending on browsers you support.



来源:https://stackoverflow.com/questions/7223143/is-oncontextmenu-cross-browser

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!