# How to fill out a form of a webpage and click a button using some JavaScript

**URL:** <https://community.thunkable.com/t/how-to-fill-out-a-form-of-a-webpage-and-click-a-button-using-some-javascript/74318>\
**Category:** Questions about Thunkable X\
**Tags:** webviewer\
**Created:** [April 9, 2019, 10:15pm UTC](https://community.thunkable.com/t/how-to-fill-out-a-form-of-a-webpage-and-click-a-button-using-some-javascript/74318 "2019-04-09T22:15:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ANAND\_VELANDY](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@ANAND\_VELANDY](https://community.thunkable.com/u/ANAND_VELANDY)\
**Post date:** [April 9, 2019, 10:15pm UTC](https://community.thunkable.com/t/how-to-fill-out-a-form-of-a-webpage-and-click-a-button-using-some-javascript/74318/1 "2019-04-09T22:15:32Z")

</div>

How to fill out a form of a webpage and click a button using some JavaScript.

This was possible in classic. wherein webviewer1.goToUrl: javascript:(function() {…}  
worked.

Can this be done in Thunkable X Webviewer?  
So that I can auto Login to my website, from App?

---

<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:** [April 10, 2019, 6:31pm UTC](https://community.thunkable.com/t/how-to-fill-out-a-form-of-a-webpage-and-click-a-button-using-some-javascript/74318/2 "2019-04-10T18:31:18Z")

</div>

A post was merged into an existing topic: [Using Javascript in webviewer?](https://community.thunkable.com/t/using-javascript-in-webviewer/74358)

---

<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:** [April 10, 2019, 6:31pm UTC](https://community.thunkable.com/t/how-to-fill-out-a-form-of-a-webpage-and-click-a-button-using-some-javascript/74318/3 "2019-04-10T18:31:19Z")

</div>


