| | |
disable saveas from IE file menu
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jul 2007
Posts: 29
Reputation:
Solved Threads: 0
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
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.
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:
4. No right click for images:
5. To prevent Copy and Paste try
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:
ASP.NET Syntax (Toggle Plain Text)
<script language="JavaScript1.1"> <!-- var debug = true; function right(e) { if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) return false; else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) { alert('This Page is fully protected!'); return false; } return true; } document.onmousedown=right; if (document.layers) window.captureEvents(Event.MOUSEDOWN); window.onmousedown=right; //--> </script>
4. No right click for images:
ASP.NET Syntax (Toggle Plain Text)
<script language="JavaScript"> <!-- function noway(go) { if (document.all) { if (event.button == 2) { alert(popup); return false; } } if (document.layers) { if (go.which == 3) { alert(popup); return false; } } } if (document.layers) { document.captureEvents(Event.MOUSEDOWN); } document.onmousedown=noway; // --> </script>
ASP.NET Syntax (Toggle Plain Text)
<body bgcolor="#FFFFFF" ondragstart="return false" onselectstart="return false">
![]() |
Other Threads in the ASP.NET Forum
- Previous Thread: Seeking a opinion for the datagrid (web + asp.net))
- Next Thread: Opening Excel 2007 File using Asp.net Hangs
| Thread Tools | Search this Thread |
.net 2.0 3.5 ajax appliances application asp asp.net beginner box browser businesslogiclayer button c# c#gridviewcolumn cac checkbox child class compatible confirmationcodegeneration content contenttype control countryselector courier css database datagrid datagridview datalist deadlock deployment development dgv dialog dropdownmenu dynamic dynamically edit embeddingactivexcontrol feedback fileuploader fill findcontrol flash flv form forms grid gridview gudi homeedition hosting iis image javascript jquery list menu mssql multistepregistration nameisnotdeclared novell objects opera order problem ratings redirect registration relationaldatabases rotatepage search security select serializesmo.table sessionvariables silverlight smoobjects sql ssl tracking treeview typeof validatedate validation vb.net virtualdirectory vista visual-studio visualstudio vs2008 web webapplications webarchitecture webdevelopment wizard xml xsl





