Hi all ,
as to communicate with the HTML i tried using the postmessage and onmessgae function .
but since very little knowledge of HTML i am not able to do it .
I was testing it like HTML code
console.log("*****************"); var myFunction = function(king){ document.body.innerHTML = king; }window.onmessage = function(event){
console.log("--------------");
myfunction(event);
};
</script>
console.log("###############");
</body>
----------------------------------
I want to display a value in html t box which is thrown by wix command
as below :- WIX CODE
$w.onReady(function () {
});
export function button1_click(event) {
console.log(“butb1”);
$w(“#html1”).postMessage(“hello world”);
//Add your code for this event here:
}
please help me in clarifying the above and finding the error . as then i will try sending a data array to google chart as to populate the data table and display. the above would be a basic to understand the working