B4J Question Get current URL from WebView

ThRuST

Well-Known Member
Licensed User
Longtime User
How to get the the currently loaded URL path from a Webview?
As it changes as the user browse to new pages I want only the one currently visible.
 
Last edited:

ThRuST

Well-Known Member
Licensed User
Longtime User
Ok I solved it, but two URL is displayed, the standard one and a Https:// so I'd like to know to handle that? Perhaps put them in a list and catch the last one if more than one exists. Ideas are welcomed, thanks.

B4X:
Sub WebView1_LocationChanged (Location As String)

    Log(Location)

End Sub

EDIT: No extra code is neccessary since the last URL will go into string Location.
Case closed :)
 
Last edited:
Upvote 0
Top