Custom right-click menu. From http://stackoverflow.com/questions/4495626/making-custom-right-click-context-menus-for-my-web-app
$(document).bind("click", function(event) {
$("div.custom-menu").hide();
});
.custom-menu {
z-index:1000;
position: absolute;
background-color:#C0C0C0;
border: 1px solid black;
padding: 2px;
}
$(document).bind("contextmenu", function(event) {
event.preventDefault();
$("<div class='custom-menu'>Custom menu</div>")
.appendTo("body")
.css({top: event.pageY + "px", left: event.pageX + "px"});
});