Menu
I am using this line of code to prevent right-click (and subsequently [I]save image
[CODE]<img src=”img/myimage.jpg” onMouseDown=”if (event.preventDefault) event.preventDefault()” oncontextmenu=”return false;” >
It’s a standard code, except that the browser warning is suppressed. And it works fine.
Unfortunately, this is not valid coding. So, is there a way to fix it?
Oh, and please no discussions about preventing theft from websites. I know nothing really works, I just want to deter the majority of web users.
Thanks in advance.