Ver Mensaje Individual
  #4 (permalink)  
Antiguo 13/02/2009, 16:02
Avatar de SPAWN3000
SPAWN3000
 
Fecha de Ingreso: marzo-2008
Ubicación: Bogota
Mensajes: 858
Antigüedad: 17 años
Puntos: 15
Respuesta: Abrir pagina web con combinacion de teclas

Alguien me paso este código... tal vez te pueda ser útil.

Código:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script type="text/javascript">
	window.onload = function() {
		document.onkeyup = muestraInformacion;
		document.onkeypress = muestraInformacion;
		document.onkeydown = muestraInformacion;
	}
	function muestraInformacion(elEvento) {
		var evento = window.event || elEvento;
		var mensaje = "Tipo de evento: " + evento.type + "<br>" +
		"Propiedad keyCode: " + evento.keyCode + "<br>" +
		"Propiedad charCode: " + evento.charCode + "<br>" +
		"Carácter pulsado: " + String.fromCharCode(evento.charCode);
		info.innerHTML += "<br>--------------------------------------<br>" + mensaje
	}
</script>
</head>
<body>

<div id="info"></div>

</body>
</html>