Solved

Disable the Ctrl+P

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
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.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

790 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