<script language="JavaScript">//just loaded we assign a name to the windowthis.window.name="my_window";alert(window.name);//function that changes the name on run timefunction my_change(){ this.window.name='my_window2'; alert(window.name);}//check if function my_change2(){ alert(window.name);}</script>