PDA

View Full Version : Help! To disable right click in Iframe



thulasiram
02-18-2005, 10:45 AM
I am using an iframe to load a website. I want to disable right click in the Iframe and as well as on the website. Anybody help me out in this. :)

simonf
02-18-2005, 10:53 AM
Why.. right click is a total waste of time.. as the images etc are downloaded on the persons pc etc and can be obtained in many ways.. Either trademark your high quality images or do post them on the web to start with.

vinod_yadav1919
02-20-2005, 09:15 AM
Hi Thulasiram !!
use this script on iframe page
<script>
document.oncontextmenu=disableit
function disableit()
{
//alert("done")
return false;
}
</script>
Hope this will help you
Cheers :)