# How to check page availability before loading in webviwer

**URL:** https://community.thunkable.com/t/how-to-check-page-availability-before-loading-in-webviwer/2438768
**Category:** Questions about Thunkable X
**Tags:** webviewer
**Created:** [May 27, 2023, 10:28am UTC](https://community.thunkable.com/t/how-to-check-page-availability-before-loading-in-webviwer/2438768 "2023-05-27T10:28:17Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ayunsolutions](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@ayunsolutions](https://community.thunkable.com/u/ayunsolutions)
#### Post date: [May 27, 2023, 10:28am UTC](https://community.thunkable.com/t/how-to-check-page-availability-before-loading-in-webviwer/2438768/1 "2023-05-27T10:28:17Z")

</div>

Hi,

I want to know how to check online page availability before loading it in the webviwer.

I need to set the webviwer visibility to to true only when the device is online and page is available.

I am able to do all the other requirements but checking page availability.

Page availability means response (200) http, or other supported feature in thunkable platform.

Thanks in advance

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [May 27, 2023, 3:35pm UTC](https://community.thunkable.com/t/how-to-check-page-availability-before-loading-in-webviwer/2438768/2 "2023-05-27T15:35:35Z")

</div>

I’m not sure how reliable this method is but if you set a Web API’s url to the website address and do a Get command, the green [error] block will contain “Network request failed”. So you can check for that to tell you if the page is unavailable. I guess you could also check the value of the green [status] block.

---

<div class="post-metadata">

### Author: ![ayunsolutions](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@ayunsolutions](https://community.thunkable.com/u/ayunsolutions)
#### Post date: [May 27, 2023, 8:17pm UTC](https://community.thunkable.com/t/how-to-check-page-availability-before-loading-in-webviwer/2438768/3 "2023-05-27T20:17:10Z")

</div>

Thanks for your suggestion, I will try this and get back to you with the results

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [August 25, 2023, 8:18pm UTC](https://community.thunkable.com/t/how-to-check-page-availability-before-loading-in-webviwer/2438768/4 "2023-08-25T20:18:08Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
