Here the code which you can use in the body tag of the document.
<body oncontextmenu="return false;">
As you can see, this code blocks the context menu i.e the menu which appears on the right click on the browsers. I’ve tested this code with major four browsers IE. Firefox, Opera and Safari. It worked well in all three browsers except Opera.