Hy. I have 2 windows. The first one contains an html form (with an button input and an text input with value="" which creates the second one(with window.open).
the second one contains some hrefs and a script.
<script language="JavaScript">
<!--
function closewindow(a)
{
window.close("\\Maximus\WebServerRoot\ window.opener.document.open();
window.opener.document.write(a);
window.opener.document.close();
window.opener.close();
}
//-->
</script>
<p align="left"></p>
<a href=" onClick="closewindow('GoRomania')" ><span id="s1"> GoRomania</span></a>
<p align="left"></p>
<a href=" onClick="closewindow('Go4Global')"><span id="s2"> 4Global</span></a>
and i want the script to write in the first window text input value(input type=text value="goromania"-)
in other words "" to become"goromania" or "go4global"
the second one contains some hrefs and a script.
<script language="JavaScript">
<!--
function closewindow(a)
{
window.close("\\Maximus\WebServerRoot\ window.opener.document.open();
window.opener.document.write(a);
window.opener.document.close();
window.opener.close();
}
//-->
</script>
<p align="left"></p>
<a href=" onClick="closewindow('GoRomania')" ><span id="s1"> GoRomania</span></a>
<p align="left"></p>
<a href=" onClick="closewindow('Go4Global')"><span id="s2"> 4Global</span></a>
and i want the script to write in the first window text input value(input type=text value="goromania"-)
in other words "" to become"goromania" or "go4global"