So I have an html element iFrame and I can send html code in it that runs perfectly with .postmessage; however I have been unable to work out how to get the html inside the element to send data out of the element.
I know that I have to use postmessage() again however I cannot get it to work on the click of a button. I have used the examples in the Corvid Reference section and can return automatic statements but I want different values to be returned by different buttons.
I thought this would work:
var x = document.createElement("Value2);
<button type=“button” onclick=“sendReturnMessage(“Value 1”);”>Button 1
Button 2
But it does not. Is there any way that it can be done?