</h1> <div id="listener"> <script type="text/javascript"> $('listener').addEventListener('message', receiveMessage, true); </script> <embed name="nacl_module" id="event_module" width=400 height=400 src="<tc>/<NAME>.nmf" type="application/x-nacl" style="background-color:gray" /> </div> <p> This example demonstrates handling of input events in PPAPI.</p> <p> Each time an input event happens in the context of the gray box, the embedded NaCl module posts a message describing the event back to JavaScript, which prints a message to the JavaScript console in Chrome and to a string on the page.</p> <h2>Events</h2> <pre> <p><b id='eventString'>None</b></p> </pre> </body> </html>