# Get current Html source code in the Webviewer

**URL:** <https://community.thunkable.com/t/get-current-html-source-code-in-the-webviewer/2016928>\
**Category:** Questions about Thunkable X\
**Tags:** webviewer, low-code\
**Created:** [August 27, 2022, 10:40am UTC](https://community.thunkable.com/t/get-current-html-source-code-in-the-webviewer/2016928 "2022-08-27T10:40:42Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![oberon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/oberon/32/112434_2.png) [@oberon](https://community.thunkable.com/u/oberon)\
**Post date:** [August 27, 2022, 10:40am UTC](https://community.thunkable.com/t/get-current-html-source-code-in-the-webviewer/2016928/1 "2022-08-27T10:40:42Z")

</div>

Hi it’s possible to get the crurent Html source of the current page in the Web viewer?

For exemple the page is a form to a external site i need get the data user enter in this page.

---

<div class="post-metadata">

**Author:** ![zander](https://avatars.discourse-cdn.com/v4/letter/z/ecb155/32.png) [@zander](https://community.thunkable.com/u/zander)\
**Post date:** [August 28, 2022, 1:43am UTC](https://community.thunkable.com/t/get-current-html-source-code-in-the-webviewer/2016928/2 "2022-08-28T01:43:33Z")

</div>

You should be able to use come custom java script inside the webviewer for that. As to the actual JS I do not know.

---

<div class="post-metadata">

**Author:** ![oberon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/oberon/32/112434_2.png) [@oberon](https://community.thunkable.com/u/oberon)\
**Post date:** [August 28, 2022, 7:06am UTC](https://community.thunkable.com/t/get-current-html-source-code-in-the-webviewer/2016928/3 "2022-08-28T07:06:45Z")

</div>

Hi i have try to use Injected Javascript but it doesn’t work.  
How to use Java ?

---

<div class="post-metadata">

**Author:** ![sketch](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sketch/32/109058_2.png) [@sketch](https://community.thunkable.com/u/sketch)\
**Post date:** [August 28, 2022, 4:10pm UTC](https://community.thunkable.com/t/get-current-html-source-code-in-the-webviewer/2016928/4 "2022-08-28T16:10:37Z")

</div>

> [@oberon](#):
>
> How to use Java ?

That’s something we can’t really help with with.  
Learning javascript can be long and hard.

There are a lot of tutorials out there like w3Schools or mdn to learn javascript.

Good luck!

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [August 30, 2022, 3:07pm UTC](https://community.thunkable.com/t/get-current-html-source-code-in-the-webviewer/2016928/5 "2022-08-30T15:07:26Z")

</div>

If the form is using client side script then you can retrieve the values but you will have to cheat the `iframe` element to do that.

If in the other hand, the form issuing server side scripts then, **no way**.

---

<div class="post-metadata">

**Author:** ![oberon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/oberon/32/112434_2.png) [@oberon](https://community.thunkable.com/u/oberon)\
**Post date:** [August 30, 2022, 10:07pm UTC](https://community.thunkable.com/t/get-current-html-source-code-in-the-webviewer/2016928/6 "2022-08-30T22:07:42Z")

</div>

Hi,

Java and javascript are 2 different languages I master javascript no problem. How to cheat the ifram? Thunkable’s iframe allows cross domain ?

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [September 2, 2022, 4:23pm UTC](https://community.thunkable.com/t/get-current-html-source-code-in-the-webviewer/2016928/7 "2022-09-02T16:23:43Z")

</div>

> [@oberon](#):
>
> How to cheat the ifram?

Will try to create an example getting data from a form that is from another domain.

---

<div class="post-metadata">

**Author:** ![oberon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/oberon/32/112434_2.png) [@oberon](https://community.thunkable.com/u/oberon)\
**Post date:** [September 3, 2022, 5:22am UTC](https://community.thunkable.com/t/get-current-html-source-code-in-the-webviewer/2016928/8 "2022-09-03T05:22:45Z")

</div>

Thank you @muneer, will try me too

---

<div class="post-metadata">

**Author:** ![oberon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/oberon/32/112434_2.png) [@oberon](https://community.thunkable.com/u/oberon)\
**Post date:** [September 10, 2022, 6:46am UTC](https://community.thunkable.com/t/get-current-html-source-code-in-the-webviewer/2016928/9 "2022-09-10T06:46:22Z")

</div>

Hi , anyone have a clue ? I tried to contact the support who ask me to ask on the forum.

---

<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:** [December 9, 2022, 6:47am UTC](https://community.thunkable.com/t/get-current-html-source-code-in-the-webviewer/2016928/10 "2022-12-09T06:47:17Z")

</div>

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