How would I specify the source window to close when a button is pressed to open a new window, I have seen this in use at, and I was wondering whether it was possible to closethe existing window, when a new one opens?

Thanks, Hell.

P.S I already know about self.close(), in Javascript, but could this be the key I need to get it to work + how, and what exactly do I need to input,