I am working on a simple VBScript that instantiates IE 6. My script then proceeds to “drive” IE by reading urls from a text file. I use this script for testing various websites. The problem is that from time to time I come across sites with popups of various forms. Can I detect new IE windows being fired up by these sites and either kill them off or do a KeySend (or is it SendKey) to simple click CANCEL? I have seen another script that fetches off the window handles as in win.HWND. Would this be a way? And if so, once I fetch of the handle, how do I manipulate (i.e. kill ) the new window by using its handle? Thanks P.S. can something similar be done for Firefox? Is there a vbscript that "drives" firefox?