Results 1 to 8 of 8
- 07-24-2009, 11:33 AM #1
How to Disable the ctrl + keys using java
Hi Folks,
in my application i have disabled the right click option for security reasons.
i would like to disable the mouse scroll button click (ctrl+mouse left click functionality) which should not be open a new window.
any suggestions please....
regards,
bharathvisit : www.yoteam.co.cc
- 07-24-2009, 02:42 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Are you talking about in the browser?
- 07-26-2009, 07:08 PM #3
Its a Web application which needs security.For that i have disabled the right click option.
But if the mouse have any scroll button(middle click) which functions as the ctrl+click with keyboard ,opens the link in a new browser.I want to disable that.Any Help..
Regards,
Jazzvisit : www.yoteam.co.cc
- 07-27-2009, 02:42 PM #4
i have been trying at last got some success
but how to disable with middle click of the mouse:-(<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<SCRIPT LANGUAGE="JavaScript">
<!--
document.onkeydown = function(ev) {
var key;
ev = ev || event;
key = ev.keyCode;
if(key == 17)
this.disabled=true;
}
//-->
</SCRIPT>
</HEAD>
<BODY><a href="http://www.google.com">click here</a>
</BODY>
</HTML>visit : www.yoteam.co.cc
- 07-28-2009, 06:59 AM #5
This is a Java programming language forum, not a Javascript browser scripting forum...
- 07-28-2009, 08:54 AM #6
- 07-28-2009, 07:51 PM #7
Please try a Javascript forum.
- 07-29-2009, 07:08 AM #8
Similar Threads
-
Write ctrl-z characters
By jithan in forum New To JavaReplies: 3Last Post: 02-18-2009, 03:11 AM -
How to store keys in KeyStore use java code
By lc666111 in forum Advanced JavaReplies: 1Last Post: 09-29-2008, 08:25 PM -
Classpath is broken after Ctrl+S
By vetalok in forum EclipseReplies: 2Last Post: 08-18-2008, 10:35 AM -
Run method on Ctrl+Shift+D
By Echilon in forum AWT / SwingReplies: 1Last Post: 02-16-2008, 10:31 PM -
how to issue the command of Ctrl-C (copy) in Java
By bilal_ali_java in forum Advanced JavaReplies: 0Last Post: 07-18-2007, 03:14 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks