Two Laptop Bag*
The moose likes Beginning Java and the fly likes Anyway for my program to read Web page address from Internet Explorer's address bar? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Anyway for my program to read Web page address from Internet Explorer Watch "Anyway for my program to read Web page address from Internet Explorer New topic
Author

Anyway for my program to read Web page address from Internet Explorer's address bar?

Hank Haroldson
Greenhorn

Joined: Jan 04, 2006
Posts: 9
Anyway for my program to find a Web page address from Internet Explorer's address bar? I just need the address, not the contents of the page. Also, anyway for me to tell IE to do a Refresh/Reload?
[ January 11, 2006: Message edited by: Hank Haroldson ]
Mike Noel
Ranch Hand

Joined: Dec 15, 2005
Posts: 108
Is your program a stand alone java program, an applet running in a browser, or a server side web app (servlet or jsp page)?

_M_


Mike Noel
Hank Haroldson
Greenhorn

Joined: Jan 04, 2006
Posts: 9
Stand-alone program....
Also, doesn't have to be IE.. if there is a way to do this with Firefox, that works too.
[ January 11, 2006: Message edited by: Hank Haroldson ]
karthikeyan Chockalingam
Ranch Hand

Joined: Sep 06, 2003
Posts: 259
You may do it in an indirect way (not a pure Java solution). Taking win 32 OS as an example, you may use exec method of Runtime and invoke a VBScript (or anyother program) and write the IE's address into a file. Then read the content from the file using Java IO.

Hope some one comes up with a much easier solution.


http://www.skillassert.com


 
 
subject: Anyway for my program to read Web page address from Internet Explorer's address bar?