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.

  1. Click the "Call" button inside the iframe
  2. The iframe sends an "onClick" event to the parent
  3. The parent window expands the iframe's dimensions
  4. 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.