What is the Void Document Oncontextmenu=null, and How to Use it?

TechLatest is supported by readers. We may earn a commission for purchases using our links. Learn more.

Do you habitually use content from multiple sites to prepare the most helpful and quality notes for your study? Or are you interested in searching and noting some deep and disheartening quotes? 


If yes, you must be using the browser to browse a particular website and try to inspect that element, and you must have experienced when the right-click menu does not appear. Here, the role of void document oncontextmenu=null comes into the picture. 

Websites have different content, with the internet being the knowledge hub and its use for lifestyle and recreational purposes. You can use them by even using some copy-paste functions.

Sometimes it simply does not work, and other times you see an error message saying, “Sorry, this functionality has been disabled by the administrator.”

What is the Void Document Oncontextmenu=null and How to Use it?

Website administrators usually do so that no one steals their data. If any blogger steals the content and generates plagiarism on their sites, the website with original content often may also have difficulty ranking.

But you need not worry! Typing the content using an alternate device or noting it down on a notepad is a hassle for time and convenience. void document oncontextmenu=null is the easiest solution to this method. Here, you will also find some additional techniques to fix it. So, let’s dig into the detail.

What is the Void Document Oncontextmenu=null, and How to Use it?

The more astounding statement Void document oncontextmenu=null is a Javascript syntax using which you will be able to use the right-click menu even on the sites where it has been blocked.  

The code might seem complex, so you may resort to other means. However, avoid the complexity as the code appears complicated. The rest is quite simple.

Follow the steps given below to use the Javascript code:

  • Visit the website wherein the right-click has been disabled
  • In the website’s address bar where the URL has been provided, input the following code
javascript: void(document.oncontextmenu=null); 
What is the Void Document Oncontextmenu=null and How to Use it?

The given JavaScript code can bypass the website’s alerts so you can access the right-click method. However, the process won’t work on some websites as administrators use many ways to disable the right-click option.

Besides, if you do not have to play with codes by copy-pasting texts each time you visit a website, we have several more methods to give you access to the right-click menu.

6 Methods to Right-Click on Websites where it is Disabled

The guide describes six alternative methods to the JavaScript as mentioned above code using which you can bypass the disabled right-click and access the right-click menu. Follow the steps given below to do so:

Method 1: Use the Reader’s Mode

It is one of the simplest ways to access the right-click menu on a website that has disabled its users from accessing it. To enable Reader’s mode on your browser, press the F9 key and check whether the right-click feature works or not.


Though it does not always work, being a quick yet simple method that often works, you can try it in a maximum of one second. 

However, if it does not work, try another method given below. 

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

Webmasters know the skill of disabling JavaScript codes so that they can access the right-click menu on any site. Besides, it’s not something so technical, so even you can do so to open the right-click menu. 

When using the Google Chrome Browser

  • On your display screen’s top right corner, you will see three vertical dots
  • Click on the dots and navigate to the Settings option
  • Afterward, navigate to Privacy and Security 
  • You will find the option of Site Settings; click on it to open it
  • Navigate to Content Settings and scroll till you see the JavaScript option
  • Toggle off the JavaScript button 

When using Mozilla Firefox 

  • Click the option and open a new tab
  • In the address bar, input ‘about config’ and press the Enter key.
  • You will see an option displaying “javascript.enabled.”
  • Double click the option to disable JavaScript

However, the method does have an associated drawback.  Technologically sound websites use JavaScript to enhance their appearance and add more features. Consequently, when you disable the Javascript, many web page elements won’t be displayed, and often it disables the entire website’s JavaScript. Therefore, take care of this aspect.


Moreover, after you disable the Javascript, you have to reload your preferred website wherein you want to use the right-click menu. Ensure to enable JavaScript after you do your task to use all the websites correctly. 

However, if you do not want to miss out on the JavaScript elements of the website, then you can follow the method mentioned below. 

Method 3: Use the Webpage Source Code to Copy Text

This method works many times when you want to use the right-click menu to copy any given content without disabling JavaScript. Follow the steps given below to do so:

  • Open the website whose content you want to copy
  • Press a combination of Ctrl and U keys simultaneously that will open the website’s source code
  • The right-click function is never disabled for source code
  • Locate your desired content from the source code and copy the part you want to! 

However, if you need a more straightforward method, the following method mentioned is a rescue. 


Method 4: Save the Desired Webpage to use the Right-Click Menu

One of the easiest ways to make the right-click work is to save the webpage as an HTML file. Afterward, you have to open the saved webpage, and you can copy-paste the content using your right-click option. Use a combination of Ctrl+S keys to save the webpage with shortcuts. 

However, if you do not want to allocate any space to web pages, even for a fraction of time, we have another method for you! 

Method 5: Use any Proxy Server to Copy Content 

Proxy servers let you surf any website by staying anonymous and with security. Plus, the coolest part is here you don’t have to struggle much with bypassing the right click. 

Follow the steps given below to do so: 

  • Open any proxy server like the Proxify or FilterByPass
  • Enter the website that you want to access
  • Browser the website anonymously and even bypass the right-click

However, here you may have to uncheck the “Remove Scripts” box in the proxy server to skip the website scripts. Enter the website that you want the right-click function to work in the Proxy website. After doing so, you can surf the web and website. 

However, if you don’t want to use any such methods and always access sites, we have the most widely used method for you! 

Method 6: Use Browser Extensions

Several browser extensions give you access to the right-click feature on any website.

Using Google Chrome, Absolute Enable Right Click & Copy extension is the safest and most credible Chrome extension. You can use the right-click option easily after configuring it. Moreover, these extensions work appropriately even for Mozilla Firefox as it is adapted to it also. 


If you don’t find these, then several more free extensions are available that you can use to bypass the disabled right-click. As these are third-party extensions, we recommend using the Javascript void document oncontextmenu=null.

The Final Word

After knowing how to bypass the disabled feature, you must use it for yourself only. Never use any features to steal anyone’s valuable and unique content for better reach without effort. 

Besides, let us know the most convenient and effective method, like the Javascript void document oncontextmenu=null.

Leave a Comment
Notify of
Inline Feedbacks
View all comments