disable right click without js and css

Qiao picture Qiao · Sep 1, 2014 · Viewed 29.6k times · Source

This is a random Chinese website http://www.soap-china.com/index.asp

I noticed that right click is disabled. I always have JavaScript off, so I started delete node by node, css line by line in Firebag, but didn't find out what is disabling right click.

How does it work?

This is not first time I see this, so I am curious about this trick.

Answer

umer picture umer · Dec 9, 2014

On the body Tag do this:

<body oncontextmenu="return false">
...
</body>