I want to send a data to the html element having a code with the help of javascript. How i can edit the code of the iFrame/ html element with client javascript
Hi,
The code can’t be changed with JS after you added it to your component its permemnat.
Why do you need to to this? maybe there is another way.
Best,
Sapir
If you’re sufficiently proficient in Javascript, you might be able to write a script for the HtmlComponent that modifies itself. Not a trivial task, but depending on what you need, it’s doable.
As Sapir and Yisrael say above, plus check out Wix Support page for it too.
https://support.wix.com/en/article/using-iframes-to-display-visible-content-on-your-site
However, not to be confused, do you actually mean passing data to or from html and a page on your website for example.
https://support.wix.com/en/article/corvid-working-with-the-html-element