Web Viewer problem- Not Able to read actual URL

I was recently trying to make a button in my app do different things depending on the current url of the web viewer. WebViewer.URL stores the value you specified to it initially. When changing the site address, WebViewer.URL does not change its value. How can I fix it ?

Thanks in advance

A post was merged into an existing topic: Web Viewer does not update the variable