Public feed
#721282
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head> <title>sin título</title> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <meta name="generator" content="Geany 0.11" /> <script type="text/javascript"> function enviaraForm2(nombre) { document.form2.nombre.value=nombre; } function saludar() { alert("Hola "+document.form2.nombre.value); } </script></head><body><p><h1>Form1</h1><form name="form1" method="post" action="javascript:void(0)"><input name="nombre" id="nombre"/><input type="button" value="enviar" onclick="enviaraForm2(document.form1.nombre.value)"/></form></p><p><h1>Form2</h1><form name="form2" method="post" action="javascript:void(0)"><input name="nombre" id="nombre"/ readonly="1"/><input type="button" value="click" onclick="saludar();"/></form> <p></body></html>