Ver Mensaje Individual
  #3 (permalink)  
Antiguo 11/01/2007, 06:58
Avatar de Superlinux
Superlinux
 
Fecha de Ingreso: octubre-2005
Ubicación: Colombia
Mensajes: 662
Antigüedad: 19 años, 5 meses
Puntos: 1
Re: ... como retornar con escape o otra tecla

bueno ... tengo esta que me permite saltar con enter sobre un formulario ...

Código PHP:
<html
<
head
<
script
function 
tabular(e,obj) { 
  
tecla=(document.all) ? e.keyCode e.which
  if(
tecla!=13) return; 
  
frm=obj.form
  for(
i=0;i<frm.elements.length;i++) 
    if(
frm.elements[i]==obj) { 
      if (
i==frm.elements.length-1i=-1
      break } 
  
frm.elements[i+1].focus(); 
  return 
false

</script> 
</head> 
<body> 
<form> 
<input type="text" onkeypress="return tabular(event,this)" /> 
<input type="text" onkeypress="return tabular(event,this)" /> 
</form> 
</body> 
</html> 
Ahora busco la forma de retornar sobre el mismo formulario pero con escape u otra tecla ....
__________________
"La vida sigue su curso, tú toma parte de ella."