Hola Lestlie.
Me estas dando la oportunidad de probar mi nueva forma de indentar código en Foros del Web al estilo Bet. Aqui vamos:
Código:
________________________________________________________________________________
<html>
<head>
<script language="JavaScript">
function fechaYHora(){
var oCntrl = document.formulario.userTxt;
var hoy = new Date();
oCntrl.value = oCntrl.value + "\nFecha: " + hoy.toString();
}
</script>
</head>
<body>
<form name="formulario">
<textarea name="userTxt">
</textarea><br>
<input type="button" value="Incluir hora y fecha" onclick="fechaYHora()">
</body>
</form>
</html>
________________________________________________________________________________
Saludos.