I don't know any clean way of doing this but the first thing that comes to mind is to enumerate all the windows to generate a list of all the open Internet Explorer Windows with their respective handles.(If you have the code to enumerate windows, you'll see how to seperate them) Next get the handle to the current foreground window with the get-foreground-window API, and compare this handle to your list to find which of the Internet Explorer Windows matches(is) the foreground window. Then you would Enumerate this window and all its child windows. Once you have this list, you can determine which window is the address bar, and then use the SendMessage API to grab the text from this window. Might sound like a lot of work but it really wouldn't take too long. Sorry I don't have my resources with me so I can't hack up an example for you. Learn how to enumerate windows and you'd probably be all set from that point. Maybe I can post an example later. Hope that helps.