# Javascript: Child windows talking to each other?

**URL:** <https://forum.kirupa.com/t/javascript-child-windows-talking-to-each-other/235158>\
**Category:** Uncategorized\
**Created:** [August 8, 2007, 10:04pm UTC](https://forum.kirupa.com/t/javascript-child-windows-talking-to-each-other/235158 "2007-08-08T22:04:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![newsteve](https://avatars.discourse-cdn.com/v4/letter/n/5f8ce5/32.png) [@newsteve](https://forum.kirupa.com/u/newsteve)\
**Post date:** [August 8, 2007, 10:04pm UTC](https://forum.kirupa.com/t/javascript-child-windows-talking-to-each-other/235158/1 "2007-08-08T22:04:22Z")

</div>

Hi,

Im trying to design a fun page where a after an onclick on the parent page, several small child windows are opened. Upon clicking the content of any of those windows, I want all of the child windows to close. I can get self.close() to close the clicked window, but I cannot communicate with the other child windows, even if I reference them by their name, ie winName.close()… are there special rules for doing this?

A miniaturized version of what I am trying to do can be seen here:  
[http://stevenewberry.com/experimental/randombirds1.html](http://stevenewberry.com/experimental/randombirds1.html)  
(click the red square!)

Thanks for any insight you may have…
