Seems still miss something. I change my on click code and html code as following:
export function button2_click(event, $w) {
let bodycode = $w(‘#textBox1’).value;
$w(‘#html1’).postMessage(bodycode);
console.log(bodycode);}
** The following HTML code I paste in #textBox1 , also tried paste in #text **
Hi!
When button click, console log shows the html code but #html1 stay still.