RE:de una a otra pagina con scripts¡¡¡¡¡¡¡¡¡¡
Saludos, Giancarlo.
El código modificado:
<script type="text/javascript">
<!--
function creaWin(txt1,txt2,txt3,txt4)
{
var win=window.open('','','width=200,height=400');
win.document.open("text/html","replace");
win.document.write("<html>\n<head><title>Win Text PoPup</title></head>\n<body>\n");
win.document.writeln("<h2>Texto 1:</h2>","<h4>"+txt1+"</h4>\n","<h2>Texto 2:</h2>","<h4>"+txt2+"</h4>\n","<h2>Texto 3:</h2>","<h4>"+txt3+"</h4>\n","<h2>Texto 4:</h2>","<h4>"+txt4+"</h4>");
win.document.write("</body>\n</html>");
win.document.close();
}
//-->
</script>
<form name="form1">
<input type="text" name="text1" value="Escribe el Texto 1" size="20">
<input type="text" name="text2" value="Escribe el Texto 2" size="20">
<input type="text" name="text3" value="Escribe el Texto 3" size="20">
<input type="text" name="text4" value="Escribe el Texto 4" size="20">
<input type="button" value="Crea WinText" onclick="creaWin(form1.text1.value,form1.text2.value,form1.text3.value,form1.text4.value)">
</form>
Los ejemplos son para pasar datos de forma virtual; para hacerlo de forma real, es preciso usar CGI, Perl, lenguajes interactivos.
P.D. El marquee no era parte del script, se me coló al pegar el código, disculpa.