开发者

Is oncontextmenu cross browser?

开发者 https://www.devze.com 2023-03-31 03:08 出处:网络
window.oncontextmenu = functio开发者_运维技巧n() { return false; }; Will this work on all major browsers such that the right click will not be initiated?See this quirksmode page for a detailed compa
window.oncontextmenu = functio开发者_运维技巧n() {
    return false;
};

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


See this quirksmode page for a detailed compatibility table.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消