<html> <body onload="parent.runTest()"> <div id='mydiv' style='width:100px;height:100px;position:absolute;top:0px; left:0px; background-color:blue;'></div> <script type='text/javascript'> document.getElementById('mydiv').addEventListener('touchstart', function() { parent.testComplete(event); }, false); </script> </body> </html>