Connect with us

Testing Tools

What is Void Document Oncontextmenu=null?

Published

, on

Have you ever encountered a situation where you want to copy an inspiring quote or inspect a particular element, but the right-click menu simply doesn’t work? This is where void document oncontextmenu=null works.

The internet world is growing at an exceptionally exponential rate, and many websites have great content. We sometimes want to save content for future use, but as soon as you try to right-click to save the content, you will see an error message stating “Sorry, this functionality has been disabled by the administrator.

The error usually means that the site administrator or owner has disabled right-click option to protect their content from plagiarism and from users who try to steal their work. Re-writing the content is a tedious task, but what other options do we have? If you need to copy only certain parts of the content, then you can use a few workarounds to copy from right click disabled websites.  One of the easiest ways that can be used is the void document oncontextmenu=null.

However, do not exploit these methods for unethical hacking purposes. Also, try to follow all the methods listed below, as what may work for one user might not work for another.

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

Webmasters often use JavaScript codes to disable right-click on their websites. You can disable the JavaScript altogether to access the right-click menu.

In Google Chrome

1. Click on the three vertical dots at the top right corner of your screen and choose the Settings option.

From the drop-down menu, click on Settings to open the Chrome settings | What Is Void Document Oncontextmenu=null, And How To Use It?

2. Find Privacy and Security and click on Site Settings.

Under Privacy and security label, click on Site Settings

3. Go to Content Settings and find JavaScript. Click on the toggle to disable it.

Enable the JavaScript option by clicking on the toggle switch | What Is Void Document Oncontextmenu=null, And How To Use It?

In Mozilla Firefox

Open a new tab, type ‘about: config’ in the address bar, and press Enter. Search for JavaScript in the search preference bar and press Enter. Double click on the ‘javascript.enabled’ option to turn its status to false from true.

Search for JavaScript in the search preference name bar

The downside of the method is that most websites use JavaScript to function properly. Disabling it might stop some of the web page elements and, in some cases, the entire website, so you should use this function with caution. Once you disable the Javascript, reload the website and use the right-click function. Always enable the JavaScript back once you are finished with your work to make sure other websites function properly.

Click to comment
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments

Trending

0
Would love your thoughts, please comment.x
()
x