DEV Community 👩‍💻👨‍💻

Discussion on: Awesome custom right click options. Pure CSS and JS

jonrandy profile image
Jon Randy

You shouldn't be replacing the normal context menu unless there is a very good reason for doing so (perhaps something like a text formatting contextual menu in Google Docs). There is an expectation from users about what a right-click (or whatever gesture they used to invoke the context menu) should do. Weird, non-standard stuff like a page navigation really should not be here - it will only serve to annoy and confuse the user.

That said, there's nothing technically wrong here - you might just want to revise your example with a better UI use case.