get the url from firefox

Ennio

Member
Joined
Mar 5, 2006
Messages
23
Programming Experience
Beginner
I would like to know how can I get the url from the browser, in example FireFox or Internet explorer.

I will have my windows form, that will be checking either IE or FF for the url and save it on my application.

I found a way to do that on IE, but I cannot find a any information about FF or any other browser.

:)
 
the only way that comes to mind to do this consistently across browsers would be to enumerate the window handles and extract the text box info using the Win32 API. Bit of a pain to be honest...
 
I have a feeling that I tried that a while ago and Firefox doesn't actually use a Windows API textbox, so you can't get the handle and call GetWindowText even.

I'm sure that there is a way of doing it in Firefox, but it might involve writing a plugin or something. I think you'd need to do it separately for any other browsers too.

The only other idea is setting a dummy proxy server or something so that all requests go via it and you can see what sites are loading.
 
Back
Top