Der Code ist wie folgt: Funktion Schlaf (n) { var a = new ActiveXObject ("wscript.shell"); A.Run ("% comspec% /c ping -n" + n + "127.0.0.1> nul", 0, 1); a = null; }