Solved

Disable the Ctrl+P

Posted on 2006-11-23
2
806 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

744 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now