Thursday, May 24, 2007

Disable right click on page.

       Here is the code to disable right click on page.

<html>
<body oncontextmenu="return false;">
     Try right click.
</body>
</html>

   Happy Programming !!

9 comments:

Janet said...

is it possible to convert it into css form?

Anonymous said...

Thank You

JayaPrakashRanga said...

This Code Does Not Work in opera browser..

Please Check it in opera...

And Send to me....

Waiting for your mail...

Gel said...

thanks. it worked!

Everlybee said...

Thank you very much for this tip :)

Anonymous said...

when u click on the image, the image opens up independently, and the right click is enabled there. how dyu disable that?

but on the main blog it worked, thanks a lot for that though. :)

Creation said...

Thank you... this works! :)

Anonymous said...

That's not work in Opera browser..
did you have disabled right click script for opera?

Archigirl said...

Thanks for sharing helpful tips! this worked perfectly.