A few days back I while checking out some of the sites I stumbled upon a nicely designed site. I liked its css and so to check it out I right clicked to view source, but to my surprise it showed up an alert box saying :
” Sorry, right-click has been disabled “
Anyhow there are still more ways to find the source code, so finally I digged out this small java script code in the head section which did all the magic.
Code:
[javascript] <script language=”Javascript”>
function mycontextmenu() {
alert(‘Sorry, right-click has been disabled’);
return false;
}
document.oncontextmenu = mycontextmenu();
</script> [/javascript]
(c) 2011 WAPGuy Network | wapguy.com Back to Top