开发者

Is oncontextmenu cross browser?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜