PHP: How to disable right click

I have a variable $norightclick from the database and i wanna do this:
if ($norightclick){
//disable right click for this page
Who is Participating?
Michel PlungjanIT ExpertCommented:
<? if ($norightclick) echo "oncontextmenu='return false'"; ?>>


PS: Right-click can always be circumvented by the way
Michel PlungjanIT ExpertCommented:
The last link from RQuadling points at this:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.