I want to know how to get an URL of an opened browser. ie. I am at site http://www.xyz.com on IE, I want to create an application with a textfield and a command button such that clicking on the command button will return the URL in IE (www.xyz.com) in the textfield.

Thanks in advance.