Posted: Tue Jun 12, 2007 11:19 pm Post subject: How to disable "save page as"? View Single Post
How to disable "save page as"?
Thanks
ADs robot
webst Guest
Gender: None specified
Posted: Tue Jun 12, 2007 11:25 pm Post subject: : How to disable "save page as"? View Single Post
Why would you want to disable save page as?
Just forget about that thought, people would thinks that you steal source codes from someone else, that is why you don't want people to save the page and view the source code.
saveas Guest
Gender: None specified
Posted: Tue Jun 12, 2007 11:27 pm Post subject: : How to disable "save page as"? View Single Post
Code:
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
<TITLE>JavaScriptBank.com -> JavaScript -> Security -> No Right Click</title></head>
<body bgcolor="#000000" text="#FFFF00" link="#00FF00" vlink="#00FF00" alink="#00FF00">
<SCRIPT language=JAVASCRIPT>
var oLastBtn=0;
bIsMenu = false;
if (window.Event)
document.captureEvents(Event.MOUSEUP);
function nocontextmenu()
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
function norightclick(e)
{
if (window.Event)
{
if (e.which !=1)
return false;
}
else
if (event.button !=1)
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
}
document.onmousedown = norightclick;
document.oncontextmenu = nocontextmenu;
</SCRIPT>
</body></html>
Try this, see if it works.
Guest
Gender: None specified
Posted: Tue Jun 12, 2007 11:32 pm Post subject: : How to disable "save page as"? View Single Post
Why disable save as?
> you hide codes, people would more likely want to ***
Having source codes and don't want to share with people
Sites like this will forgotten.
script Guest
Gender: None specified
Posted: Fri Jul 06, 2007 4:42 am Post subject: : How to disable "save page as"? View Single Post