Disable right click and view page source option
Have you ever thought about your images and contents on your website you can Stop People from Stealing. Protect your Images contents by Disabling right click. it’s possible but there are some options to view your source code (keyboard shortcut ctrl+u, Firefox web browser Tools > Web developer > Page Source)
Source Code – Copy and paste this code add it to the <head> section of your homepage HTML
<script language=JavaScript> var message="Function Disabled!";
function clickIE4(){ if (event.button==2){ alert(message);
return false; } } function clickNS4(e)
{ if (document.layers||document.getElementById&&!document.all)
{ if (e.which==2||e.which==3){ alert(message); return false; } } }
if (document.layers){ document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4; }
else if (document.all&&!document.getElementById)
{ document.onmousedown=clickIE4; }
document.oncontextmenu=new Function
("alert(message);return false") </script>
Disable right click and view page source option
Reviewed by Unknown
on
1:29 PM
Rating:
No comments: