@daveyerwinAug 23.2019 — #``<i> </i><button id=longpress>hold down for two seconds</button> <script> var longPress = (function(){ var timer = '';
function up(e){ clearTimeout(timer); }
function down(e){ timer = setTimeout(timedOut,2000); }
function timedOut(){ alert('button was down for 2 seconds or more'); }