Making a painting app using HTML5 and Canvas.
I think I want to have a similar system to applications like Paint and Photoshop where you can have a primary and secondary
This should do the job with more modern (and readable) syntax than the other answers.
const canvas = document.getElementById('myCanvas'); canvas.oncontextmenu = () => false;