Close Document Window with Javascript Description: A very very simple javascript snippet of code that allows you to close a document window. Features: Not much too it; since most pop-up type ads are blocked now I don't know if it's going to be of use to you. But here's how to do it. Click Here to Copy contents to your Clipboard Close Window