Skip to main content
InterviewHubPRO
Section Overview
Q386

Question 386 of 536

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

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

How do you disable right click in the web page

senior LevelCode ExampleCLIAsync & PromisesEvent Loop

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>