页面:

document.oncontextmenu = function(e){return false};

嵌套iframe:iframe中要对contentDocument禁用

// 先获取到iframe
iframe.contentDocument.oncontextmenu = function(e){return false};