Question: Click the button on the main screen to open the sprites with window.open. I want the following effect (can't use popup, because you can operate on the main screen while the sprites are open)
Requirements:
1. If the sprites are open, click the button again to indicate that they are open
2. The parameters of the sprites can be returned to the main screen
3. When you click Clear on the Sprite, the Sprite closes and clears the value of the input box in the main screen
Do you have similar experience? Please help me
Hi,
What I can suggest is you using iframe. So the sprite is an iframe, and send message using javascript postMessage (ref : https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage)
See my oml example below.