[thelist] Window names - Javascript
Jen Worden
jen at meadoworks.com
Tue May 30 10:15:53 2000
Hi Norman ...
>What is the name of the intial window opened by a browser? I'm opening a
>pop-up window and I want to reference a text area in the main window from
>it.
You call it whatever you want. In the main window put this inside head tags
added to your call function, like so :
<script language="JavaScript">
<!--
function openHelp()
{
help = window.open("help.html", "help",
"width=250,height=250,location=no,menubar=no,directories=no,toolbar=no,scrol
lbars=yes,resizable=no,status=no");
}
this.name = 'front';
// -->
</script>
Where "front" is the name of the main window. In return you can reference
this from your pop-up window.
HTH ... Jen
Jen Worden - Web Developer
meadoworks - http://www.meadoworks.com