Cannot disable page context menu

Hi there!

I’m using a custom script hosted at my webpage to launch Jitsi Meet, using

I wanted to disable the context menu, in order to difficult viewing source code, for example.
I realized that my different ideas to do that never worked. For instance:

Solution 1: document.oncontextmenu = function(e) {e.preventDefault(); return false;}
Solution 2: window.oncontextmenu = (e) => {e.preventDefault();}
Solution 3: document.addEventListener("contextmenu", function(e) {e.preventDefault();}, false);

Any idea to disable the right click menu compatible with any browser?

Thanks in advance.

No ideas? I want to disable right click (context menu) of the browser, but the typical pieces of code that usually works didn’t work in this case.

Please, help.