tags:

views:

71

answers:

2

Hi,

I am looking to add, via javascript an item to the right click context menu on a website, how do I do that?

I have been looking around the web but have found nothing, so if you have a link to a good article that would be great.

I also know there is some compatibility issues with Opera but I am not worried about that right now.

Thanks, R.

Of course I post and instantly find a good tutorial:

http://luke.breuer.com/tutorial/javascript-context-menu-tutorial.htm

+1  A: 

Yahoo!'s YUI library has a nice menu component, which has a ContextMenu. You'll have the same problem you noted with Opera, but across the browsers it works nicely and it's easy to integrate your functions and style the menu.

David Caunt
+2  A: 

jQuery has Context Menu implementation.
Here is a live demo.