DEV Community

Discussion on: Make a Custom Right Click Menu with Javascript

Collapse
 
naveennamani profile image
naveennamani

I once implemented this functionality in a small personal webapp, where the menu items will change based on the element you're clicking. I used some custom properties on the elements and based on that the menu items will dynamically load on right click.

It was fun to build, and the info about css positioning is straight to the point. Informative article

Collapse
 
ramgendeploy profile image
Ramiro - Ramgen

Yea this is a really cool small project to start with javascript, did you use react or just javascript

Collapse
 
naveennamani profile image
naveennamani

I used HTML custom elements while I was learning about them at that time along with vanilla js

Thread Thread
 
ramgendeploy profile image
Ramiro - Ramgen

That's great, I want to do this on react but would be really similar maybe on a full app I'll do it