What is Void(document.oncontextmenu=Null) & How to Enable Right-Click

Are you encountering issues when attempting to use various websites to browse content by inspecting elements through your web browser? If you find that, after right-clicking, there’s no menu appearing and instead, you’re faced with unexpected text or error messages like ‘Void Document Oncontextmenu Null,’ you’re not alone.

Many websites feature distinct content, including various theme elements, codes, and style elements. Some internet users prefer to copy and paste codes or functions from one website to another as a shortcut method. However, this method doesn’t always work smoothly, and users may encounter error messages such as “Sorry, this functionality has been disabled by the administrator.”

Website owners or administrators often secure their content or minify codes to prevent easy copying and pasting of their data. This is done to ensure that the original user or content creator receives proper credits and appreciation, as well as to avoid issues related to spam or plagiarism. Additionally, copy-pasting the same content across multiple websites can lead to difficulties in achieving a higher ranking in search results from major search engines.

What is ‘Void Document Oncontextmenu Null’ – Void(document.oncontextmenu=Null); 

To our knowledge, “Void document oncontextmenu=null” is a JavaScript (JS) code that can be employed to re-enable right-click functionality on websites that have implemented content protection measures. This code can help bypass the website’s content protection alert, allowing users to utilize the right-click menu easily. Here’s how to use it:

  • Visit the specific website where content copying is disabled.
  • In the URL address bar, input the following code and press Enter: javascript: void(document.oncontextmenu=null);
  • This will bypass the website’s JavaScript (JS) code, enabling you to right-click on selected content and use the Copy/Paste options to transfer it elsewhere.

Please Note: It’s important to acknowledge that this method may not work universally for all websites. Some website owners or administrators are aware of this trick and may have implemented additional codes to secure their content, making it immune to the provided code. Additionally, you’ll need to manually enter the void(document.oncontextmenu=null); code each time you wish to copy-paste restricted content from any website, which may be inconvenient for some users.

Fortunately, there are alternative methods listed below that you can explore to enable right-clicking on websites and bypass content protection. Consider trying these methods to determine which one works best for you across various websites.


Utilize Reader Mode:

  • Initially, attempt to use Reader Mode in the web browser to enable right-click functionality on websites that have it disabled. Press F9 to activate Browser Reader Mode. Afterward, check if the issue persists. If it does, proceed to the next method.

Disable JavaScript to Enable Right-Click Menu:

  • Disable JavaScript to activate the right-click menu and override content protection on websites. Follow the steps below to easily disable JavaScript:a. Open the web browser settings. b. Locate the option to disable JavaScript. c. Disable JavaScript and save the changes.After disabling JavaScript, check if you can now right-click on the content-protected websites. If the problem persists, consider trying additional methods.

For Google Chrome:

  • Open Google Chrome.
  • Click on the three vertical dots icon at the top right corner.
  • Go to Settings and locate Privacy and Security.
  • Click on Site Settings.
  • Go to Content Settings and find JavaScript.
  • Disable it to check for the issue.

For Mozilla Firefox:

  • Launch Mozilla Firefox and open a new tab.
  • Type about: config in the address bar and press Enter.
  • Locate JavaScript in the search preference bar and press Enter.
  • Double-click on the javascript.enabled option and set the status to False.
  • After disabling, you can reload the website and right-click on the content.
  • Once done, follow the steps again and revert the javascript status to true.

Keep in mind that disabling JavaScript from any website may prevent some files or content from loading properly.

3. Using the Source Code of the Webpage:

If you only need to use the right-click method to copy-paste content, access the Source Code section of the webpage by pressing Ctrl+U. Right-clicking should not be disabled for the source code, allowing you to find and copy content.

4. Save the Webpage as HTML:

Save the webpage on your computer as an HTML file and then copy-paste the content from the downloaded webpage. The webpage, saved in HTML format, can be opened in a web browser, facilitating easy copying.

5. Try Using Proxy Server:

Utilize a proxy server to browse the internet securely and anonymously. Some reliable proxy servers, such as Proxify or FilterByPass, can help you copy content from websites where right-clicking is restricted.

6. Use Browser Extensions:

If previous methods don’t work, try using web browser extensions to bypass right-click restrictions. Install extensions like “Enable Right Click & Copy” from the Chrome Web Store or “Absolute Enable Right Click & Copy” for Mozilla Firefox.

If you encounter any further issues with copying content by right-clicking on protected websites, feel free to comment below.

Leave a Comment