Ver Mensaje Individual
  #1 (permalink)  
Antiguo 16/03/2010, 19:50
luqueagm
 
Fecha de Ingreso: junio-2009
Mensajes: 101
Antigüedad: 14 años, 11 meses
Puntos: 0
todos los input con getelement

HOLA

como puedo hacer para que me abra en una ventana todos los ids de los inputs pero con getlementByid?

Código:
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="TextPad 4.4">
<LINK href="general.css" rel="stylesheet" type="text/css">
<SCRIPT LANGUAGE="JavaScript">

<!-- inicio
function displayHTML(form) {
var inf = form.htmlArea.value;
var info = form.p5C10.value;
var infos = document.getElementById("p5C12").value;
win = window.open("", "", 'popup', 'toolbar = no, status = no');

for (x = 1; x < 100; x++)
{
win.document.write("" + inf + "");
win.document.write("" + info + "\n" + ";" + "\n" + "");
win.document.write("" + infos + "");
win.document.writeline("" + document.getElementById("p5C1"+x).value + "");
}

}
//  final -->
</script>

</HEAD>

<BODY>
<center><BR><BR>it into the form.<br> PASAR COSA A new window. <BR>
<form id=form>

<textarea name="htmlArea" cols=45 rows=6>
</textarea>
<br>
<input type="button" value=" view " onclick="displayHTML(this.form)">

<p>Nombre3: <INPUT TYPE= "text" id=p5C10 NAME="p5C10" size="20" value=10 > </p> 
<p>Nombre4: <INPUT TYPE= "text" id=p5C11 NAME="p5C11" size="20" value=11 > </p>  
<p>Nombre5: <INPUT TYPE= "text" id=p5C12 NAME="p5C12" size="20" value=12 > </p> 
<p>Nombre6: <INPUT TYPE= "text" id=p5C13 NAME="p5C13" size="20" value=13 > </p> 
<p>Nombre7: <INPUT TYPE= "text" id=p5C14 NAME="p5C14" size="20" value=14 > </p> 

</form>


</center>
</BODY>
</HTML>