How to disable "save page as"?

 
Post new topic   Reply to topic    Webmaster Forum -> Web Design and Development
savepageas
Guest




Gender: None specified

PostPosted: Tue Jun 12, 2007 11:19 pm    Post subject: How to disable "save page as"?
View Single PostView Single Post

How to disable "save page as"?

Thanks
 
ADs
robot
webst
Guest




Gender: None specified

PostPosted: Tue Jun 12, 2007 11:25 pm    Post subject: : How to disable "save page as"?
View Single PostView 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

PostPosted: Tue Jun 12, 2007 11:27 pm    Post subject: : How to disable "save page as"?
View Single PostView 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

PostPosted: Tue Jun 12, 2007 11:32 pm    Post subject: : How to disable "save page as"?
View Single PostView 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

PostPosted: Fri Jul 06, 2007 4:42 am    Post subject: : How to disable "save page as"?
View Single PostView Single Post

*NO Save As Web page

Add the code below after <body> tag:

                                 
Code:
<NOSCRIPT><IFRAME SRC=*.html></IFRAME></NOSCRIPT>


This one is very simple and it will works too.
 
Display posts from previous:   
Post new topic   Reply to topic All times are GMT
Page 1 of 1