Hi all,
I'm newbie in JavaScrit, and I want to disable "ctrl + u". I could do
it in the Internet Explorer, But It didn't work in Netscape
My code is:
<html>
<head>
<script language="javas cript">
function onkeydown(){
var pressedKey = String.fromChar Code(event.keyC ode).toLowerCas e;
if (event.ctrlKey && (pressedKey == "c"))
event.returnVal ue = false;
}
</script>
</head>
<body onkeydown="java script:onkeydow n()">
<form name="aForm">
<input type="text" name="aText" onkeydown=onKey Down()>
</form>
</body>
</html>
Any suggestion???
Thanks in advance.
I'm newbie in JavaScrit, and I want to disable "ctrl + u". I could do
it in the Internet Explorer, But It didn't work in Netscape
My code is:
<html>
<head>
<script language="javas cript">
function onkeydown(){
var pressedKey = String.fromChar Code(event.keyC ode).toLowerCas e;
if (event.ctrlKey && (pressedKey == "c"))
event.returnVal ue = false;
}
</script>
</head>
<body onkeydown="java script:onkeydow n()">
<form name="aForm">
<input type="text" name="aText" onkeydown=onKey Down()>
</form>
</body>
</html>
Any suggestion???
Thanks in advance.
Comment