2013-01-28 JS Long press in javascript Way to detect a long press event. 1234567891011var pressTimer$("a").mouseup(function(){ clearTimeout(pressTimer) // Clear timeout return false;}).mousedown(function(){ // Set timeout pressTimer = window.setTimeout(function() { ... your code ...},1000) return false;}); This can also be used in touch event. Newer Integrate django with apache2 via mod_wsgi Older Null and Undefined in javascript