codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Java script: Disable "Save Web Page As" code  Darkness at 06:14 on Wednesday, December 22, 2004
 

I reany need a java code that will disable"Internet exploror"
Save web page as feture.
i all ready "Disable" right click -+- ex tool bar.
But i would realy like to get it. i lose a lot of content.
Can any one please help me out?

  Re: Java script: Disable  tgreer at 15:08 on Wednesday, December 22, 2004
 

It's impossible. All you are doing when a user browses to a page is serving them your source code. The browser then interprets it. If you don't want users to see your code, then don't use a web application.



  Re: Java script: Disable  vikask at 10:20 on Wednesday, September 26, 2007
 

i tried many time to search to disable save page as option if anybody have this type of code pls post



  Re: Java script: Disable  tariq.younas at 13:46 on Wednesday, March 19, 2008
 

<html>

<script language="javascript">
document.onmousedown=disableclick
status="Right Click Disabled"
function disableclick(e) {
if( event.button==2 )
alert("Sorry...you can't copy INTECH Policy");
return false;
}
</script>


<body onSelectStart="return false;">
Hello this is tariq younas.
MCTS for web having blog and group.

[.netHotShots]

</body>
</html>



Now your copy and right click is disabled.

Cheers.

Tariq Younas









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
• mkdirs
• Re: Web Development Project
• ** Site Hacked ** javascript inserted...
• Losing background/text color when converting HTML to PDF
• hidden div block when displayed, displays at an offset of 200px only in IE 6..
• help - sketch
• Re: Perl Script - File Handling.
• Open a file from website
• Re: to open 5 terminals from one and also execute different commands on each terminal


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2008