Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/03/2012, 16:01
el_chivoregresa
 
Fecha de Ingreso: febrero-2012
Mensajes: 84
Antigüedad: 12 años, 3 meses
Puntos: 3
insertar formulario html en javascript

buenas si alguien me puede ayudar con esto:

como hago para colocar un formulario hatml en esta sentencia en javascript

este es el script

if (this.score == 2){ }



y este es el formulario

<form action="funcionregistropt.php" method="post">
<input type="text" id="Editbox1" style="position:absolute;left:343px;top:540px;widt h:268px;height:37px;line-height:37px;z-index:2;" name="nick" value="" maxlength="10">
<div id="wb_Text1" style="position:absolute;left:217px;top:542px;widt h:119px;height:48px;z-index:3;">
<span style="color:#FFFFFF;font-family:Arial;font-size:13px;">Nombre de usuario y correo electronico:</span></div>
<div id="wb_Text7" style="position:absolute;left:283px;top:472px;widt h:327px;height:42px;z-index:4;">
<span style="color:#FFFFFF;font-family:'Times New Roman';font-size:19px;">Introduce tu nombre de usuario y tu correo electronico.</span></div>
<input type="submit" id="Button1" name="" value="Registrar" style="position:absolute;left:503px;top:617px;widt h:96px;height:25px;z-index:5;">
</form>




osea

que si se cumple el if aparece el formulario

if (this.score == 2){//aqui va el formulario }