Сообщение от DooMer
|
x-yuri,
Ctrl+C не отследишь кроссбраузерно
|
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<script type="text/javascript">
document.onkeydown = function( e ){
e = e || window.event;
if( e.ctrlKey && e.keyCode == 67 )
d('Ctrl-C');
};
function d( s ){
var p = document.createElement('p');
var text = document.createTextNode(s);
p.appendChild( text );
document.body.appendChild( p );
}
</script>
</body>
</html>
где не работает?