# Can I add JavaScript code to the thunkable web view?

**URL:** <https://community.thunkable.com/t/can-i-add-javascript-code-to-the-thunkable-web-view/3107851>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [July 22, 2024, 12:08am UTC](https://community.thunkable.com/t/can-i-add-javascript-code-to-the-thunkable-web-view/3107851 "2024-07-22T00:08:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eak41](https://avatars.discourse-cdn.com/v4/letter/e/b4bc9f/32.png) [@eak41](https://community.thunkable.com/u/eak41)\
**Post date:** [July 22, 2024, 12:08am UTC](https://community.thunkable.com/t/can-i-add-javascript-code-to-the-thunkable-web-view/3107851/1 "2024-07-22T00:08:14Z")

</div>

Can I use JavaScript to make all input types into numbers that are shown in Thunkable Web Viewer ?

Do I need to use this tool?

 ![Screenshot 2024-07-22 065159](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/8/5884563ff1188fbfe787cf1b8f3a5886ffc9a7f5.png)

I’m on this page.  
How can I put my JavaScript code in this box?

---

<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:** [July 22, 2024, 11:30am UTC](https://community.thunkable.com/t/can-i-add-javascript-code-to-the-thunkable-web-view/3107851/2 "2024-07-22T11:30:44Z")

</div>

Hello @eak41  
We replied to your question in a separate support channel but I also wanted to offer the answer here.

To add a JavaScript code inside a Thunkable app you can use a [“JavaScript Web Bridge” block](https://docs.thunkable.com/blocks/advanced-app-features/javascript-web-bridge) or [Web Viewer component.](https://docs.thunkable.com/app-design/ui-components/embed-components/web-viewer)

In both ways, the code needs to be saved as an HTML that inside contains the JavaScript code

Further setup instructions here: [Thunkable Web Viewer Extensions](https://github.com/thunkable/webviewer-extension/).

---

<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:** [October 20, 2024, 11:31am UTC](https://community.thunkable.com/t/can-i-add-javascript-code-to-the-thunkable-web-view/3107851/3 "2024-10-20T11:31:32Z")

</div>

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