Ayuda lineas de codigo
Publicado por JOrge (1 intervención) el 01/06/2007 19:30:34
Tengo el siguiente codigo html, y algunas lineas no se que significan alguien me puede colaborar???. Gracias
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<html><head><title>Dinámica</title><body bgcolor="FFFFDD">
<form name="formulario" method="post" action=""><table width="80%" border="0">
<tr><td align=right">Nombres y Apellidos</td>
<td><input type="text" name="Nombres" value="Maryvi Guzmán González"></td></tr>
<tr><td align="right">Cédula</td>
<td><input type="text" name="identificacion" value="656667"></td></tr>
<tr><td align="right"><input type="submit" name="Enviar" value="Enviar"></td>
<td><input type="reset" name="limpiar" value="Borrar"></td></tr>
</table></form>
<pre>
<script language="javascript1.3">
document.writeln("<hr>Las siguientes son las características de esta página:">;
//Estas lineas que significan
tit=document.title;
document.writeln("Título: <b>" + tit+"</b>");
fondo=document.bgColor;
document.writeln("Color de fondo:<b>"+fondo+"</b>");
document.writeln("Tiene un formulario llamado: <b>"+document.formulario.name+"</b>");
nom=document.formulario.Nombres.value;
document.writeln("El valor del control de texto \"Nombres\" es <b>"+nom+"</b>");
if (document.formulario.identificacion > 1000000) num="si";
else num="no";
document.writeln("El número de cédula de <b>"+nom+num+" es mayor que 1000000</b>");
nom=document.formulario.limpiar.value;
document.writeln("El valor del botón de la derecha es: <b>"+nom+"</b>");
//
</script>
</pre>
</body>
</html>
Valora esta pregunta


0