# Web Viewer does not update the variable

**URL:** <https://community.thunkable.com/t/web-viewer-does-not-update-the-variable/541433>\
**Category:** Questions about Thunkable X\
**Created:** [March 28, 2020, 6:27pm UTC](https://community.thunkable.com/t/web-viewer-does-not-update-the-variable/541433 "2020-03-28T18:27:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wincanyons](https://avatars.discourse-cdn.com/v4/letter/w/e19b73/32.png) [@wincanyons](https://community.thunkable.com/u/wincanyons)\
**Post date:** [March 28, 2020, 6:27pm UTC](https://community.thunkable.com/t/web-viewer-does-not-update-the-variable/541433/1 "2020-03-28T18:27:57Z")

</div>

Hi, i’m a new user and i’m experiencing some problems in using the WebViewer.

I would like to show into the label below the web viewer the URL of the website I’m visiting by clicking a button, I used google as the first page to be loaded.

Once I launch the app Google opens and if I press the button “https//google.com” is correctly printed into the label.

The problem arises when I change the web page e.g. (go on the Wikipedia page), when I click the button the label is not updated.  
How can I solve this ??

Here below the screen of the app and the code  
thanks to all of those who will take a minute to help me.

Have a nice day !

 ![Screenshot 2020-03-28 at 19.07.32](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/7/4790666b8ea80b43a39aaa9cc8b302f424ad97ea.png) ![Screenshot 2020-03-28 at 19.07.50](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/c/6cfd4f22fac9ac1fc86216409922a7ba1f30810d.png)

---

<div class="post-metadata">

**Author:** ![wincanyons](https://avatars.discourse-cdn.com/v4/letter/w/e19b73/32.png) [@wincanyons](https://community.thunkable.com/u/wincanyons)\
**Post date:** [March 29, 2020, 8:12am UTC](https://community.thunkable.com/t/web-viewer-does-not-update-the-variable/541433/2 "2020-03-29T08:12:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![wincanyons](https://avatars.discourse-cdn.com/v4/letter/w/e19b73/32.png) [@wincanyons](https://community.thunkable.com/u/wincanyons)\
**Post date:** [March 31, 2020, 10:48am UTC](https://community.thunkable.com/t/web-viewer-does-not-update-the-variable/541433/3 "2020-03-31T10:48:42Z")

</div>

I’m trying to build an app that displays two web pages in 2 Web Viewers ( in the upper and lower half of the screen ) and that has to check if these pages are equal while the user navigates. (Image below)

For example, let’s say I open on the upper Web Viewer the Google main page and on the lower one the apple web page.

Once the page are loaded i search on Google( Upper WV) the apple web site.

I would like my app to notify the user that the two pages displayed are the same.

I tried by checking the URL of the two Web Viewers but it does not work, it seems that the URL variables are not updated every time I change page

From your experience are there any other methods to check if the 2 pages are the same ? It doesn’t have to require mandatorily the URL. I could work also with the text on the page or the html code or java.  
Thank you so much

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [March 31, 2020, 11:00am UTC](https://community.thunkable.com/t/web-viewer-does-not-update-the-variable/541433/4 "2020-03-31T11:00:19Z")

</div>

Hey @wincanyons 👋

Welcome to the community - sorry for the delayed response.

I’ve consolidated all of you messages in to a single thread to make the conversation easier for other to folllow.

As it happens, someone else asked almost the exact same question at the exact same time as you:

> [@Check if two web pages are the same](http://community.thunkable.com/t/check-if-two-web-pages-are-the-same/543187):
>
> HI, i’m new on thunkable. I’m trying to build an app that displays two web pages ( in the upper and lower half of the screen ) and that has to check if these pages are equal while the user navigates. I tried by checking the URL of the two Web Viewers but it does not work. The variable i use to store the URL of the two pages does not get updated when the page changes. Can u please suggest me some other ways to check if the web pages are equal?

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 11:39am UTC](https://community.thunkable.com/t/web-viewer-does-not-update-the-variable/541433/5 "2024-11-08T11:39:32Z")

</div>


