"Jean-Luc ERNST" <jeanlucpointernst@advalvaspointbe> wrote in message
news:9bec3$426cfa05$52aea9dc$14119@news.versatel.n l...[color=blue]
> "McKirahan" <News@McKirahan.com> a écrit dans le message de news:
>
6IadnTFD875invHfRVn-ug@comcast.com...
> ...snip...[color=green]
> > Your function needs to be in the new document.[/color]
> ...snip...
>
> Thank you McKirahan,
> Do you have tested your suggestion ?
> I made the changes you suggested but it doesn't work.
> Perhaps something I have forgotten ?
>
> Here my corrected file:
>
http://cjoint.com/?ezqjgvuCQC
> (right-click on the file's name on the page's top and open it in a new
> window: the source code will be clean).
>
> Cordialement,
> Jean-Luc Ernst
>
>[/color]
I did not test it; when I did I saw that it won't work.
However, the following does; adapt it for your needs.
<html>
<head>
<title>pop.htm</title>
</head>
<body>
<script type="text/javascript">
var name = "x";
var mail = "y";
var pop = window.open();
pop.document.write("<html>\n");
pop.document.write("<body bgcolor='#FF9999' onLoad='clip()'>\n");
pop.document.write("<form action='' method='post' name='contenu'>\n");
pop.document.write("<input type='hidden' name='valeur' value='<p>NAME:
" + name + "<p>E-MAIL: " + mail + "'>\n");
pop.document.write("</form>\n");
pop.document.write("<" + "script type='text/javascript'>\n");
pop.document.write("document.contenu.valeur.create TextRange().execCommand('C
opy');\n");
pop.document.write("alert('Paste from the clipboard!');\n");
pop.document.write("</" + "script>\n");
pop.document.write("</body>\n");
pop.document.write("</html>\n");
</script>
</body>
</html>