email1.php
Código HTML:
<html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <a href="emails.php">correos</a><br> <input id="email" type="text" > </body> </html>
emails.php
Código HTML:
<html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <script type="text/javascript"> funcion fun (v) { opener.document.getElementById("email").value=v; window.close(); } </script> <a href="javascript:" onClick="fun(innerHTML)">[email protected]</a> </body> </html>
besos a todos