I've tryed your solution, but I can use it only with a link, like this:<br><a href="javascript:hideLayer()">Close the window</a><br><br>But, if I do this, for example:<br>window.onFocus="javascript:hideLayer()";<br>it doesn't function.<br><br>How can I do?<br><br>Bye!<br>DeCa