# Web\_viewer ignore click area

**URL:** <https://community.thunkable.com/t/web-viewer-ignore-click-area/2661426>\
**Category:** Questions about Thunkable X\
**Tags:** webviewer\
**Created:** [October 24, 2023, 2:24pm UTC](https://community.thunkable.com/t/web-viewer-ignore-click-area/2661426 "2023-10-24T14:24:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeroen.mulder](https://avatars.discourse-cdn.com/v4/letter/j/977dab/32.png) [@jeroen.mulder](https://community.thunkable.com/u/jeroen.mulder)\
**Post date:** [October 24, 2023, 2:24pm UTC](https://community.thunkable.com/t/web-viewer-ignore-click-area/2661426/1 "2023-10-24T14:24:49Z")

</div>

I use a webviewer to reproduce a FAQ which is already on a website.  
HOWEVER I do not want people to navigate away from that page.  
Therefore I wish to ignore clicks on the menu

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/b/3be611712229228f5be222f0b225d8c09a2bf34b.png)

I tried a button or a Label over the hamburger menu but it is still clickable even when the button/label is on top? (In the example I moved the button away from the menu for clarity).

How can I prevent clicks on a particular area of the webviewer?  
Fixing the scroll position to start at a certain position would also be an option but that is not possible either.

When I could run java script I would just run:  
document.getElementsByClassName(‘mobile-menu-toggle’)[0].style.display=‘none’;

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [October 25, 2023, 1:28am UTC](https://community.thunkable.com/t/web-viewer-ignore-click-area/2661426/2 "2023-10-25T01:28:49Z")

</div>

Is it your own website?

---

<div class="post-metadata">

**Author:** ![jeroen.mulder](https://avatars.discourse-cdn.com/v4/letter/j/977dab/32.png) [@jeroen.mulder](https://community.thunkable.com/u/jeroen.mulder)\
**Post date:** [October 25, 2023, 6:21am UTC](https://community.thunkable.com/t/web-viewer-ignore-click-area/2661426/3 "2023-10-25T06:21:50Z")

</div>

Yes. The website is mine.

---

<div class="post-metadata">

**Author:** ![jeroen.mulder](https://avatars.discourse-cdn.com/v4/letter/j/977dab/32.png) [@jeroen.mulder](https://community.thunkable.com/u/jeroen.mulder)\
**Post date:** [November 6, 2023, 2:17pm UTC](https://community.thunkable.com/t/web-viewer-ignore-click-area/2661426/4 "2023-11-06T14:17:49Z")

</div>

I think sending a message to a wordpress site for hiding a menu is a bit cumbersome.

I am stuck. No other ideas?

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [November 6, 2023, 2:46pm UTC](https://community.thunkable.com/t/web-viewer-ignore-click-area/2661426/5 "2023-11-06T14:46:23Z")

</div>

Yeah. Build your faq in the app.

[https://community.thunkable.com/t/fun-share-add-a-faq-to-your-app/1733959?u=jared](https://community.thunkable.com/t/fun-share-add-a-faq-to-your-app/1733959)

---

<div class="post-metadata">

**Author:** ![jeroen.mulder](https://avatars.discourse-cdn.com/v4/letter/j/977dab/32.png) [@jeroen.mulder](https://community.thunkable.com/u/jeroen.mulder)\
**Post date:** [November 8, 2023, 10:21am UTC](https://community.thunkable.com/t/web-viewer-ignore-click-area/2661426/6 "2023-11-08T10:21:03Z")

</div>

Thanks for the suggestion. i managed to extract the faq via web api. But that route is a lot of work.  
I saw this example [thunkable example](https://community.thunkable.com/t/html-in-thunkable/43717/3) to include javascript

Can I not do something like this to run javascript?

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/4/345ab48d7084d84eb53aabe3769e6ea05741105b.png)

This way it obviously does not work.

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [November 8, 2023, 2:26pm UTC](https://community.thunkable.com/t/web-viewer-ignore-click-area/2661426/7 "2023-11-08T14:26:49Z")

</div>

No. You can’t do script injection unless you own the site. And then you’d do it on that site.

Alternatively, use the webviewers post method, and throw the script onto your Wordpress site so you can listen for actions in the app from the site

---

<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:** [February 6, 2024, 2:27pm UTC](https://community.thunkable.com/t/web-viewer-ignore-click-area/2661426/8 "2024-02-06T14:27:45Z")

</div>

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