nemrod.se Various guides and experiments

Custom Context Menu with jQuery


This is just a thing that might come in handy for when I make future web applications that use extensive jQuery to make it feel like a real app. Basically it binds your right-click to open a menu that can be made to do stuff related to the site instead of the usual “View source” and stuff that’s usually going on.

More technically speaking it uses jQuery to simply bind the event generated when you right-click on the page to showing a div at the place where the mouse was when you clicked and then preventing the default menu to show up.

Here’s a link: Custom context menu

Edit: Apparently this doesn’t work in Internet Explorer either. Really can’t do anything fun with that browser, can you? u_u


Posted in Experiments | Leave a comment

Leave a Reply

Your email address will not be published. Required fields are marked *