disable saveas from IE file menu

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2007
Posts: 29
Reputation: creativehacker is an unknown quantity at this point 
Solved Threads: 0
creativehacker creativehacker is offline Offline
Light Poster

disable saveas from IE file menu

 
0
  #1
Oct 8th, 2008
Is there any way to disable saveas option in IE browser
I found a site where they disabled saveAs in IE
www.totaram.com
how did they actually do that
can this be done using javascript...or any other mechanism
I want saveas to be disabled when users see my site in IE
Last edited by creativehacker; Oct 8th, 2008 at 12:53 pm.
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 6
Reputation: zezo is an unknown quantity at this point 
Solved Threads: 0
zezo's Avatar
zezo zezo is offline Offline
Newbie Poster

Re: disable saveas from IE file menu

 
0
  #2
Oct 9th, 2008
1. At first, you can not disable save as menu command as it is for explorer not for web page.
I go to http://www.totaram.com with firefox and save as is enabled, so if you disable it from IE, you not in other explorers. and also you can not prevent short cut keys or print functions.

2. You can disable right click via java script, check this web site http://javascript.internet.com/page-details/no-right-click.html


3. You can prevent view source by:
  1. <script language="JavaScript1.1">
  2. <!--
  3. var debug = true; function
  4. right(e) { if (navigator.appName == 'Netscape' && (e.which == 3 || e.which
  5. == 2)) return false; else if (navigator.appName == 'Microsoft Internet Explorer'
  6. && (event.button == 2 || event.button == 3)) { alert('This Page is fully
  7. protected!'); return false; } return true; } document.onmousedown=right; if (document.layers)
  8. window.captureEvents(Event.MOUSEDOWN); window.onmousedown=right;
  9. //-->
  10. </script>

4. No right click for images:
  1. <script language="JavaScript">
  2. <!--
  3. function noway(go) { if
  4. (document.all) { if (event.button == 2) { alert(popup); return false; } } if (document.layers)
  5. { if (go.which == 3) { alert(popup); return false; } } } if (document.layers)
  6. { document.captureEvents(Event.MOUSEDOWN); } document.onmousedown=noway;
  7. // -->
  8. </script>
5. To prevent Copy and Paste try
  1. <body bgcolor="#FFFFFF" ondragstart="return false" onselectstart="return false">
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC