iframe - Window.postMessage()

Community Beginner ,
Oct 14, 2021 Oct 14, 2021

Copy link to clipboard

Copied

Hello, 

 

I'm using an IFRAME to share an XD prototype. 

 

In my HTML page I have my IFRAME embedded and centred (vertically / horizontally). I would like to use the space around the prototype to send keyboard commands to the prototype. For keypress simulation I'm using javascript which works. Unfortunately I'm not 100% sure on how to setup the communication between the Window.postMessage() on my page and the XD IFRAME prototype as my website is hosted on my domain and the XD prototype lives in Adobe's cloud. 

 

Do you have an example that you could share of such communication?

 

Thank you.

Views

92

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation