|    
			
				31/05/2006, 18:37
			
			
			  | 
  |   |  | Me alejo de Omelas |  |  Fecha de Ingreso: mayo-2004 Ubicación: -34.637167,-58.462984 
						Mensajes: 5.148
					 Antigüedad: 21 años, 5 meses Puntos: 834 |  | 
  |  Otra manera  
  
Código:
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Excepción</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script>
function probar(){
try {
  //ejemplo de línea con error
  alerta("Esta linea provocará una excepción.");  
}
catch(exception) {
  if (exception.description == null) {
    alert("Excepción: " + exception.message);  
  } else {
    alert("Excepción: " + exception.description);
  }
}
}
</script>
</head>
<body>
<a href="javascript:probar()">probar </a>
</body>
</html>
     |