JavaScript - Necesito saber que esta mal cion este ejemplo

 
Vista:

Necesito saber que esta mal cion este ejemplo

Publicado por fede (1 intervención) el 23/02/2004 22:53:44
<html>
<head>
<script Language =\"JavaScript\">
<!--
function anda(col, fil)
{
document.write(\'<table border=\"1\" >\');
for(i=0; i<col; i++)
{
document.write(\"<tr>\");
for (j=0; j<fil; j++)
{
document.write(\"<td>no anda</td>\");
}
document.write(\"</tr>\");
}
document.write(\"</table>\");
}
//-->
</script>
</head>
<body>
<form name=\"P\" action=\"anda(parceInt(P.col),parceInt(P.fil))\">
columna
<input type=\"text\" name=\"col\">
<br>
fila
<input type=\"text\" name=\"fil\">
<br>
<input type=\"button\" name=\"Crear\" value=\"pon\" OnClick=\"Submit\">
</form>
</body>
</html>
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:Necesito saber que esta mal cion este ejemplo

Publicado por Vulgibagus (46 intervenciones) el 27/02/2004 04:04:57
<html>
<head>
<script language="JavaScript">
function anda(col, fil) {
for (i = 0; i < parseInt(fil); i++) {
document.write("<tr>");
for (j = 0; j < parseInt(col); j++) {
document.write("<td>si anda</td>");
}
document.write("</tr>");
}
document.write("</table>");
}
</script>
</head>
<body>
<form>
columnas : <input type="text" name="col"> <br>
filas : <input type="text" name="fil"> <br>
<input type="button" name="Crear" value="pon" onclick="anda(this.form.col.value, this.form.fil.value)">
</form>
</body>
</html>
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar