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.
精彩评论