<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script>
$('body').ready(function() {
$('#divParent').on('contextmenu', function(event) {
console.log($(event.target).attr('id'));
});
});
</script>
<body>
<div id="divParent">
click parent
<div id="divChild">click child</div>
</div>
</body>
</html>