Solved

Disable the Ctrl+P

Posted on 2006-11-23
2
810 Views
Last Modified: 2008-03-06
Here is another example/

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=160976&SiteID=1

But I just need to disable the Ctrl+P

without setting the value
WebBrowserShortcutsEnabled
0
Comment
Question by:mathieu_cupryk
  • 2
2 Comments
 
LVL 19

Accepted Solution

by:
DreamMaster earned 500 total points
ID: 18006353
Hi mathieu_cupryk,

<script language="JavaScript">
function keyWhat(e){
   if (navigator.appName == 'Microsoft Internet Explorer'){
                 //For CTRL keys
             if (event.keyCode == 17)
                 alert('You can\'t use the Control key on this website');
   }
}//end of function
document.onkeydown=keyWhat;
</script>

Will disable the use of the CTRL key, there is however no way to just disable CTRL-P, without disabling the other CTRL combinations.

Regards,
Max.
0
 
LVL 19

Expert Comment

by:DreamMaster
ID: 18008574
Glad I was helpfull..

Regards,
Max.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Turn on intranet settings 1 57
Open MVC5 View in new Window (not Tab) using HTML.ActionLink 6 29
ASP.NET MVC 2 32
Need to start a web service from Visual Studio 2015 Pro 2 25
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question