Ver Mensaje Individual
  #2 (permalink)  
Antiguo 21/09/2004, 13:28
Avatar de Carlitos
Carlitos
Usuario no validado
 
Fecha de Ingreso: mayo-2001
Ubicación: Zaragoza
Mensajes: 1.304
Antigüedad: 23 años
Puntos: 25
Hola.

A ver si este ejemplo te da alguna idea de cómo hacerlo.
Código:
<script>
function vista()
{
 ventana=window.open('','','width=300,height=100')
 codigo="<b>Nombre: </b>"
 codigo+=document.formulario.nombre.value
 codigo+="<p><b>E-mail: </b>"
 codigo+=document.formulario.mail.value
 ventana.document.write(codigo)
}
</script>


<form name="formulario">
nombre: <input type="text" name="nombre"><br>
e-mail: <input type="text" name="mail"><p>
<input type="button" value="Vista" onclick="vista()"><br>
<input type="submit" value="Enviar"><br>
<input type="reset" value="Borrar">
</form>