How to disable right click on the page.
How to disable right click on the page. actually i want to disable right click on the image.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Blocked AccountRank #403 · 6.2K reputationPosted Apr 21, 2009, 8:24 PM EDT
Hi,
Put this javascript in the head section of your page.
Niradhip ChakrabortyRank #429 · 5.8K reputationPosted Apr 21, 2009, 10:58 PM EDT
NO RIGHT CLICK" for Images
Script For "NO RIGHT CLICK" for Source
You also can try the folowing link
1.http://www.web-wise-wizard.com/javascript-tutorials/disable-right-click.html
ArshadRank #2,492 · 564 reputationPosted Apr 21, 2009, 11:34 PM EDT
Even i want to suggest some thing for this Thread,
we can just use the oncontextmenu="return false;" inside the Image, thats all
It will disable the right click in the Image.
Regards
Arshad Khan.
Purushottam RathoreRank #120 · 18.2K reputationPosted Apr 26, 2009, 8:48 PM EDT
Thank you sir for reply
This script is able to disable right click on page but i want to disable right click on image only.