/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function pause(millisecondi) { var now = new Date(); var exitTime = now.getTime() + millisecondi; while(true) { now = new Date(); if(now.getTime() > exitTime) return; } }