Auto-Expanding Iframe Demo
Shows iframe expansion and audio visualization on first click.
How It Works
The iframe starts small (140×80px) with audio visualization disabled.
- Click the "Call" button inside the iframe
- The iframe sends an "onClick" event to the parent
- The parent window expands the iframe's dimensions
- The component inside the iframe shows audio visualization
Event Log
No events logged yet. Interact with the iframe...
Implementation Code
Special Variables: In your script,
__iframe
gives you access to the iframe DOM element, and __event
contains the message data from the iframe. These are automatically injected when your code runs.