Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Disable the Ctrl+P

Posted on 2006-11-23
2
Medium Priority
?
839 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 1500 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

971 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