The context menu has its own event. You just need to catch it and stop it from propagating.
window.oncontextmenu = function(event) {
event.preventDefault();
event.stopPropagation();
return false;
};
More Related Contents:
- Detect rotation of Android phone in the browser with JavaScript
- Detect a finger swipe through JavaScript on the iPhone and Android
- Detect click on HTML button through javascript in Android WebView
- Android Calling JavaScript functions in WebView
- Refused to load the script because it violates the following Content Security Policy directive
- How can I hide the Android keyboard using JavaScript?
- Making facebook login work with an Android Webview
- Detect inside Android Browser or WebView
- How can I generate an apk that can run without server with react-native?
- Capture keys typed on android virtual keyboard using javascript
- Are there any standards for mobile device web browsers in terms of thread sleeping? [closed]
- Android Web-View : Inject local Javascript file to Remote Webpage
- JavaScript keypress event not raised on Android browser
- Android 4.2.1, WebView and javascript interface breaks
- JavaScript not working in Android Webview?
- Is there a way to enable the JavaScript Error/Debug Console for Safari within Android?
- Run javascript code in Webview
- React Native Android build failure with different errors without any changes in code for past days due to publish of React Native version 0.71.0-rc.0
- Navigate to screen after opening a notification?
- JavaScript how to check User Agent for Mobile/Tablet
- Disable zoom on input focus in Android webpage
- Does React Native compile JavaScript into Java for Android?
- Reference javax.script.ScriptEngine in android or evaluate a javascript expression
- Force hide address bar in Chrome on Android
- Display Good-looking Math Formula in Android
- How to check a file’s existence in phone directory with phonegap
- window.close equivalent in Phonegap with InAppBrowser
- How to focus an input field on Android browser through javascript or jquery
- How to bind both Mousedown and Touchstart, but not respond to both? Android, JQuery
- Access-Control-Allow-Origin Error At Android 4.1