Click here to Skip to main content
15,867,594 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
How can I retrieve the text in a browser's address bar?
My application knows that (for example) Opera browser is launched, and it is the active window. I need to know the URL of current web page.
Posted

You could write plugins for Opera if it supports it.
For IE, we write a plugin called a Browser Helper Object (BHO) which can get the URL and any notifications like when navigating to a new URL.
 
Share this answer
 
You would have to use SPY++ to find the window handle of the Opera address bar, and then somehow retrieve the text in that window using a windows message.
 
Share this answer
 
you can use location.href in java script which returns the current page's url.... hope this helps
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900