PHP: How to disable right click

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

Michel

PS: Right-click can always be circumvented by the way
0
 
Michel PlungjanIT ExpertCommented:
The last link from RQuadling points at this: http://www.webreference.com/dhtml/diner/contextmenu/5.html
0
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.