What Is Void Document Oncontextmenu=null (Enable The Right Click in browser)

Written by Barry Allen

May 25, 2022

How To Enable the Right Click in Browser Void Document Oncontextmenu=null


Have you ever wanted to copy an inspiring phrase or inspect a certain aspect but couldn’t because the right-click menu wasn’t working? This is where the void document oncontextmenu=null function comes into play.

The internet world is expanding at an incredible rate, and many websites provide excellent material. We occasionally wish to save stuff for later use, but when you right-click to save it, you might receive an error notice that says, “Sorry, this functionality has been disabled by the administrator.” The error usually indicates that the site administrator or owner has disabled the right-click option in order to safeguard their content from plagiarism and users attempting to steal it. Although rewriting the content is a time-consuming process, what other options do we have? You can use a few workarounds to copy from right-click disabled websites if you only need to copy particular parts of the material. The void document oncontextmenu=null is one of the most straightforward methods.

If you are looking to find more about Oncontextmenu=null, this article is for you. In this post, we have given all the required details that you need to know about void document Oncontextmenu=null.

What is Void Document Oncontextmenu=null, And How To Use It?

Oncontextmenu=null in the Void page is a simple JavaScript component that you may use to enable right-click on websites that have forbidden it. You can utilize it by following a simple and painless procedure. To begin, go to a website that has blocked right-clicking. In the URL bar (address bar), type the following code and hit enter:

javascript: void(document.oncontextmenu=null);

This JavaScript code will disable the website’s alert, allowing you to easily use the right-click menu. However, there is no confirmation that this strategy will work on every website because webmasters deactivate right-click in different methods. Another demerit of this method is that you must paste the above code into the address bar every time you want to copy something from the page.

Ways to Enable Right Click on the Websites that have Disabled it

Method 1: Disable the JavaScript to Enable the Right-Click Menu

Step 1: Click on the three dots. Go to settings.

Step 2: Find privacy and security and click on-site settings.

Step 3: Locate JavaScript under Content Settings. Toggle it off by clicking the toggle.

Method 2: Save the Webpage to Enable the Right-Click Menu

This is also one of the many viable alternatives to the disabled right-click menu. You can then access and copy the contents as usual after saving the appropriate webpage as HTML. Save the web page by pressing CTRL+S on your keyboard.

Method 3: Use a Proxy Server to Copy Content from a Website


A proxy server allows you to browse safely and privately and avoid the right-click menu being disabled. You can use a variety of proxy servers, such as Proxify and FilterByPass. Simply input the website in the Proxy website where you want the right-click function to work. After that, you’ll be able to surf and access the website anonymously, avoiding the right-click warning. You may also need to uncheck the ‘Remove Scripts’ box in the proxy server to avoid executing website scripts. To ensure that the website operates smoothly, uncheck the box.


This article outlines all the steps to help you know about the void document Oncontextmenu=null. If you have any other issues or suggestions, let us know in the comment area.



  • Barry Allen is a Technical writer at Layman Solution. He is an expert in writing How To and Fixes articles.


Submit a Comment

Your email address will not be published.

Related Articles

How To Play Family Feud On Zoom

How To Play Family Feud On Zoom

Introduction To play any game on Zoom, you must first create a Zoom call and guarantee that everyone is able to join it. You will only be able to schedule 45-minute sessions in the free version. It would be ideal if any member of the group could purchase the paid...

Move Chrome Address Bar To Bottom

Move Chrome Address Bar To Bottom

Introduction In the Chrome browser, the address bar is at the top by default, and it can be difficult to carry out your tasks of accessing information with one hand. Long thumbs are required to reach the address bar at the top of the browser; alternatively, the...

How Often Does Google Earth Update

How Often Does Google Earth Update

Introduction Google Earth is a Google product that displays a 3D picture of the Earth. The images are captured by satellites. It allows users to see the entire world on their computer screen. The concept behind Google Earth is to operate as a geographical browser that...

Stay Up to Date With The Latest News & Updates

Access Premium Content

Join Us to get access of our premium content.

Join Our Newsletter

Join Us to get weekly premium content, straight into your inbox.

Follow Us

We are on Social Media! Follow us.