Mega Code Archive
Categories
/
JavaScript Reference
/
Event Handlers Reference
OnContextMenu Example
Right click in the image.
If you want to prevent the user from opening the context menu, add the following code to the element above: oncontextmenu="function2(); return false;"