# Is it possible to load html code into the webviewer?

**URL:** https://community.thunkable.com/t/is-it-possible-to-load-html-code-into-the-webviewer/1045091
**Category:** Questions about Thunkable X
**Created:** [January 11, 2021, 11:15pm UTC](https://community.thunkable.com/t/is-it-possible-to-load-html-code-into-the-webviewer/1045091 "2021-01-11T23:15:55Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![kushweez](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kushweez/32/90265_2.png) [@kushweez](https://community.thunkable.com/u/kushweez)
#### Post date: [January 11, 2021, 11:15pm UTC](https://community.thunkable.com/t/is-it-possible-to-load-html-code-into-the-webviewer/1045091/1 "2021-01-11T23:15:56Z")

</div>

I would like to know if it is possible to load raw html code in the web viewer.

I would like the html code to change according to the user because I’m creating invoices. it’s impossible for me to load a html file directly locally like file.html it would be useless I can’t dynamically change its content, do you have an idea ?

I searched for a few hours but nothing works at the moment the data:text/html, neither

---

<div class="post-metadata">

### Author: ![eko.devs.apploroceo](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eko.devs.apploroceo/32/93147_2.png) [@eko.devs.apploroceo](https://community.thunkable.com/u/eko.devs.apploroceo)
#### Post date: [January 12, 2021, 5:11am UTC](https://community.thunkable.com/t/is-it-possible-to-load-html-code-into-the-webviewer/1045091/2 "2021-01-12T05:11:18Z")

</div>

**simple ans** :not possible  
but u can make it as html site n do

---

<div class="post-metadata">

### Author: ![drted](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/drted/32/92694_2.png) [@drted](https://community.thunkable.com/u/drted)
#### Post date: [January 12, 2021, 7:38am UTC](https://community.thunkable.com/t/is-it-possible-to-load-html-code-into-the-webviewer/1045091/3 "2021-01-12T07:38:44Z")

</div>

Check out the webviewer post/receive message functionality

[https://docs.thunkable.com/web-viewer#post-message-receive-message](https://docs.thunkable.com/web-viewer#post-message-receive-message)

---

<div class="post-metadata">

### Author: ![kushweez](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kushweez/32/90265_2.png) [@kushweez](https://community.thunkable.com/u/kushweez)
#### Post date: [January 12, 2021, 8:16am UTC](https://community.thunkable.com/t/is-it-possible-to-load-html-code-into-the-webviewer/1045091/4 "2021-01-12T08:16:16Z")

</div>

@drted Oh thanks, I knew this feature but I didn’t know it was possible to load html code with it. I’ll try some things during the day and I’ll get back to you thanks.

---

<div class="post-metadata">

### Author: ![luv.ak.tech](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/luv.ak.tech/32/104896_2.png) [@luv.ak.tech](https://community.thunkable.com/u/luv.ak.tech)
#### Post date: [January 12, 2021, 8:55am UTC](https://community.thunkable.com/t/is-it-possible-to-load-html-code-into-the-webviewer/1045091/5 "2021-01-12T08:55:46Z")

</div>

yes we can and we can do many things with html and and use web viewer to implement it like copying text

---

<div class="post-metadata">

### Author: ![kushweez](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kushweez/32/90265_2.png) [@kushweez](https://community.thunkable.com/u/kushweez)
#### Post date: [January 12, 2021, 3:28pm UTC](https://community.thunkable.com/t/is-it-possible-to-load-html-code-into-the-webviewer/1045091/6 "2021-01-12T15:28:08Z")

</div>

Here is the code

```
		 ThunkableWebviewerExtension.receiveMessage(function(htmlpdf) {
document.body.innerHTML = htmlpdf;
});
```

---

<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: [November 8, 2024, 1:30pm UTC](https://community.thunkable.com/t/is-it-possible-to-load-html-code-into-the-webviewer/1045091/7 "2024-11-08T13:30:52Z")

</div>


