Need a little help I want to get a score from the iframe game and show my data on the parent page console. Need code
You can use the standard JS
postMessage() API to communicate between the two instances. Check this manual page, it includes a code sample:
Is any project live means this code implemented it would be better for me to understand the code?
Ah, sadly I am not aware of a public PlayCanvas project that implements that as an example.
Ok thanks for the information
Hey @HasnainX , the following thread may be helpful in implementing the communication using postMessageApi.
Well thanks, @saif Is any project live means this code is implemented it would be better for me to understand the code?
I am afraid there is no public project in my knowledge.