5

Is there a recommended way of retrieving the current URL given the hwnd of Chrome, Firefox or IE?

tofutim
  • 22,664
  • 20
  • 87
  • 148
  • 2
    I think UIAutomation is the only way; http://stackoverflow.com/a/5318791/246342 – Alex K. Jan 31 '12 at 12:10
  • [WatiN](http://watin.org/) might be able to do some of this, though it's only for IE and FireFox, and I'm not sure whether it can work with a specific HWND or not. – Joe White Jan 31 '12 at 13:39

1 Answers1

-1
 Request.Url.Scheme
Request.Url.Host
 Request.ApplicationPath 

You can use these and explore more also .

mR.idiOt
  • 107
  • 2
  • 9
  • 1
    No, Request is for ASP.NET (i.e., server-side). The question is client-side: given the window handle of a browser window, how to get that browser window's URL. – Joe White Jan 31 '12 at 13:38