[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 156
  • Last Modified:

How to find URL from WebBrowser object ?

I open an HTML page via WebBrowser.Navigate command. Next I navigate into Web clicking directly on WebBrowser windows . Finally I need to read latest URL address from WebBrowser object. Is this possible to do?
Thanks in advance. Raoul
0
raoulg
Asked:
raoulg
  • 2
1 Solution
 
mcriderCommented:
You can get the URL you clicked on in the BeforeNavigate2 Event of the WebBrowser control... Like this:

Private Sub WebBrowser1_BeforeNavigate2(ByVal pDisp As Object, URL As Variant, Flags As Variant, TargetFrameName As Variant, PostData As Variant, Headers As Variant, Cancel As Boolean)
    Debug.Print URL
End Sub


Cheers!®©

0
 
raoulgAuthor Commented:
All right, thanks.
0
 
mcriderCommented:
Curious... Why grade this a "B"??
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now