1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <meta charset="utf-8"> 5 <title>Touchscreen Tap Page</title> 6 <script> 7 var pageReady = false; 8 var clickCount = 0; 9 10 function onLoad() { 11 document.addEventListener('mouseup', mouseUp, false); 12 pageReady = true; 13 } 14 15 function mouseUp(e) { 16 clickCount += 1; 17 console.log("Click count:", clickCount); 18 } 19 20 </script> 21 </head> 22 <body onload="onLoad()"> 23 </body> 24 </html> 25