Hi Nunina,
I have responded to similar query before regarding protecting images. You can insert some code to prevent users getting a right-click menu.
The code is as follows: (I got this from dynamicdrive.com)
Add the code to the <BODY> section of your webpages. (Change the line that says "Function Disabled!" to your own messgae if you wish)
-----------------------------------------------------------
<script language=JavaScript>
<!--
//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit
///////////////////////////////////
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;
}
If you are using ASP - keep in mind that the browser will now show your ASP coding - it will be parsed to HTML. So your database connection strings will not be shown
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.