K
Krist
Hi All,
In our web application we want to disable user from pressing CTRL key.
and we want to implement this for IE, Firefox and if possible other
browser.
I have tried this code, doesn't work :
<script type="text/javascript">
document.onkeyup = KeyCheck;
function KeyCheck()
{
var KeyID = (window.event) ? event.keyCode : e.keyCode;
if ( KeyID == 17) {
alert("Test Alert System");
}
}
</script>
Pls help me to fix the code...
Thank you very much,
Krist
In our web application we want to disable user from pressing CTRL key.
and we want to implement this for IE, Firefox and if possible other
browser.
I have tried this code, doesn't work :
<script type="text/javascript">
document.onkeyup = KeyCheck;
function KeyCheck()
{
var KeyID = (window.event) ? event.keyCode : e.keyCode;
if ( KeyID == 17) {
alert("Test Alert System");
}
}
</script>
Pls help me to fix the code...
Thank you very much,
Krist