Html code export to database

Hello,
I have create and embed an html code which is doing some calculations within and I would like to export the results from this embed code to a database that i have already create.
How can i do that ?
Thank you in advance

Hi,
You need to use postMessage and onMessage methods to communicate between HTML component and the page.
Once you done with that use insert method to add data to the database collection.
Good luck!
Roi