I've been a professional C, Perl, PHP and Python developer.
I'm an ex-sysadmin from the late 20th century.
These days I do more Javascript and CSS and whatnot, and promote UX and accessibility.
I'd try to discourage people from doing this, because you're changing the way people expect the browser to work, and annoying those who want to do things like save an image, or activate an accessibility feature from their regular context menu. It becomes even more tricky when you try to replicate the same thing on a touch device, where context menus like this will (if they even work) cover most of the user's viewport. It's not a good fit for small screens.
Web and Software Frontend Developer. Used to work in Full-stack JavaScript.Been at this for a few years now, and think I now understand my specific domain pretty well. Still a lot to learn though.
Location
Manchester, UK
Education
Web Systems Design BSc at Sheffield Hallam University, Sheffield, UK
I've been a professional C, Perl, PHP and Python developer.
I'm an ex-sysadmin from the late 20th century.
These days I do more Javascript and CSS and whatnot, and promote UX and accessibility.
I'd try to discourage people from doing this, because you're changing the way people expect the browser to work, and annoying those who want to do things like save an image, or activate an accessibility feature from their regular context menu. It becomes even more tricky when you try to replicate the same thing on a touch device, where context menus like this will (if they even work) cover most of the user's viewport. It's not a good fit for small screens.
There's no bad solutions, only bad usages and bad implementations.
This will definitely help
You are right. This can cause many problems for the user. I created this article to inform beginners.
If someone needs a right click element in a project, they can create it this way.
If you hold shift while right clicking, it will bring up the default menu
@jamix-vcz that's only true in some browsers, in some contexts, and it's not something you can expect users to know.