I am trying to open/close a child window from a mother window. Here is the code in the mother window:
<html><head><body>
<a href="#top" onClick="window.open('some.jpg','childWindow','dependent=0')">child is born</a>
<br>
<a href="javascript:childWindow.close();">child dies</a>
<br>
</body></head></html>
When I click "child is born" the window opens. When I click "child dies" I get an error saying that childWindow is not defined.
I'm using IE 6.0
I'm sure the problem is something obvious but it is Friday after a 60+ hour week and I'm getting to old to work such hours and I'm very tired. Any ideas?
Thanks,
Glenda
<html><head><body>
<a href="#top" onClick="window.open('some.jpg','childWindow','dependent=0')">child is born</a>
<br>
<a href="javascript:childWindow.close();">child dies</a>
<br>
</body></head></html>
When I click "child is born" the window opens. When I click "child dies" I get an error saying that childWindow is not defined.
I'm using IE 6.0
I'm sure the problem is something obvious but it is Friday after a 60+ hour week and I'm getting to old to work such hours and I'm very tired. Any ideas?
Thanks,
Glenda