Dustwright

Embedding example

This page embeds viewer.html in an iframe, the way a wiki embed extension does, and drives it with postMessage. The viewer sends ready, select and step events; this page sends setStep commands, which the viewer accepts only because this page's origin is in its allowed-origins. See Embedding the viewer.

Events from the viewer