rendered paste body# html_1<html> <head> <title>Html 1</title> </head><body><script language="javascript">function Abrir(url){ window.open(url,"_blank", "width=300,height=100")}</script><form name="form"> <input type="text" name="codigo" id="codigo"><input type="button" value="abrir" onClick="Abrir('html_2.html');"></form></body></html># html_2<html> <head> <title>Html 2</title> </head><body onload="Load();"><script language="javascript">function Load(){ wp = window.parent codigo = wp.document.getElementById('codigo').value; document.form_html2.getElementById('codigo_2').value = codigo;}</script><form name="form_html2"> <input type="text" name="codigo_2" id="codigo_2"></form></body></html>