How could I find opened (maybe not active) window. My script is like when you press on a link, it popups a new window with details (Javascript). If the popuped window doesn't show any details (error), it automatically clsoes that window. It is just like I wanted, but what script should I use to make refresh that page which I pressed that link (which pop ups a new window) from ? I think it's called Referring page. Any help would be very appreciated.