Hi,
Using Chromium1.LoadURL('http://...') wil navigate to a page.
However when the address changed by a component, I want to read back the URL.
e.g. l_url := Chromium.ReadURL
I tried Chromium1.Broswer.MainFrame.URL but that always returns : 'about:blank'
I can not find such call, or I do not know how to retreive the current URL from TChromium.
How can I do that?
Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
Get URL from TChromium
- salvadordf
- Posts: 4564
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Get URL from TChromium
Hi,
Try any of these :
Try any of these :
- TChromium.VisibleNavigationEntry.Url
- TChromium.VisibleNavigationEntry.DisplayUrl
- The TChromium.OnBeforeBrowse event should have a valid frame.url when isRedirect is true
Re: Get URL from TChromium
Hi,
I do not use or have set a VisibleNavigationEntry so an AV will popup at trying to get the URL.
I do not use or have set a VisibleNavigationEntry so an AV will popup at trying to get the URL.
- salvadordf
- Posts: 4564
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Get URL from TChromium
Sorry for not replying before. I see in Facebook that you already found another TChromium event with the information you need. 

Re: Get URL from TChromium
Care to share the solution..? 

- salvadordf
- Posts: 4564
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Get URL from TChromium
https://www.facebook.com/groups/1370122 ... 4213642294
I found a solution. I can use the event OnAddressChange on TChromium