`return false` in an event handler attached by addEventListener or element.on*
问题 Right let’s get this out the way first. Yes, I want to hide the context menu. No, I’m not trying to prevent someone lifting content off my page. Its intended use is input for an in-browser game and it will be limited to a specific area on the webpage. Moving from the ideological to the technical... var mouse_input = function (evt) { // ... return false; } document.onmousedown = mouse_input; // successful at preventing the menu. document.addEventListener('mousedown', mouse_input, true); //