This simple page demonstrates how to catch and handle right-click (context menu) clicks on elements in HTML. In general this is not a good idea, as it prevents all of the goodness normally found in the browser's right-click menu, but when you gotta do it, you gotta do it.

Right-click is handled for this rectangle, and is normal everywhere else on the page.