DomEvent

Start the program and awaits a DOM event.

Open the source of this page to see the implementation.

yield new Snippet.Delay(2000);
targetButton.innerHTML = 'Click me!';
yield new Snippet.DomEvent('click', targetButton);
targetButton.innerHTML = 'Good job!';