# Video: Using PostMessage to interact with the HTML Element

**URL:** <https://forum.wixstudio.com/t/video-using-postmessage-to-interact-with-the-html-element/38654>\
**Category:** Show and tell\
**Tags:** tips, code\
**Created:** [July 21, 2022, 5:06pm UTC](https://forum.wixstudio.com/t/video-using-postmessage-to-interact-with-the-html-element/38654 "2022-07-21T17:06:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amandam](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/amandam/32/79539_2.png) [@amandam](https://forum.wixstudio.com/u/amandam)\
**Post date:** [July 21, 2022, 5:06pm UTC](https://forum.wixstudio.com/t/video-using-postmessage-to-interact-with-the-html-element/38654/1 "2022-07-21T17:06:11Z")

</div>

The HTML Element can be a quick and powerful way to extend the capabilities of your Velo site. In this video tutorial, I show a simple example of how to pass data safely back and forth from your page code to the HTML element (or iFrame).

For more information, you can also check out these resources referenced in the video:  
[HTML iFrame Element Article](https://support.wix.com/en/article/velo-working-with-the-html-iframe-element)  
[API Reference](https://www.wix.com/velo/reference/$w/htmlcomponent)  
[MDN Docs for PostMessage](https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage)  
[LeafletJS](https://leafletjs.com/)

To be the first to know when new videos drop, join our [Discord community](https://discord.gg/GhdmDN926z) and subscribe to our [YouTube playlist](https://youtube.com/playlist?list=PLi3fKZF2b29g5BQJoYV1sK0nrvM1mu3vm) .

[![](https://us1.discourse-cdn.com/wix/original/3X/4/6/46b1e8d0f89377d08e8f4b7e6eb5495b5abf4bb6.jpeg "How to Send Data between an iFrame and your Wix Site") ](https://www.youtube.com/watch?v=Nt8nw25hEr8)

---

<div class="post-metadata">

**Author:** ![mrmacaronager](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/mrmacaronager/32/8640_2.png) [@mrmacaronager](https://forum.wixstudio.com/u/mrmacaronager)\
**Post date:** [March 6, 2023, 11:41pm UTC](https://forum.wixstudio.com/t/video-using-postmessage-to-interact-with-the-html-element/38654/2 "2023-03-06T23:41:25Z")

</div>

Extremely helpful!
