InterviewHubPRO
Section Overview
Q386

Question 386 of 521

Part 6: Async Internals, Memory, Microtasks & Web APIs (329 - 403)

74%
JavaScript Internals (521 Qs)•Part 6: Async Internals, Memory, Microtasks & Web APIs (329 - 403)

How do you disable right click in the web page

The right click on the page can be disabled by returning false from the oncontextmenu attribute on the body element.

html
 <body oncontextmenu="return false;"></body>