Bom dia, eu estou com uma dúvida, tem como usar o comando "target" sem ser no link somente? É que eu tenho uma página com frames, ai em um frame esta uma página q contém um botão pra montar uma matriz, ai eu qria q esta matriz montada aparecesse no 2º frame, tem como?? aqui vai o código:
<html>
<head>
<title>Calculando X & Y</title>
</head>
<script Language="JavaScript">
function montaArray() {
linhas = document.form.linhas.value;
colunas = document.form.colunas.value;
colunas--;
var myarray = new Array(linhas)
for (i=0; i<linhas; i++) {
myarray[i] = new Array(colunas);
}
document.write("<form>");
for(i=0; i<linhas; i++){
for(j=0; j<=colunas; j++){
document.write("<input type='text' size='1'>");
}
document.write("<br>");
}
document.write("</form>");
}
</script>
<body>
<form name="form">
<table>
<tr>
<td>
<font face="Verdana" size="2"><b>Matriz:</b></font>
<input type="text" size="1" name="linhas" maxlength="2"> <font face="Verdana" size="1">(linhas) X
<input type="text" size="1" name="colunas" maxlength="2"> <font face="Verdana" size="1">(colunas)
</td>
<td>
<input type="button" name="botaoMontar" value="Montar" onClick="montaArray();">
</td>
</tr>
</table>
</form>
</body>
</html>