Ma refeream sa fie scris in orice limbaj atata timp cat indeplineste ce vreau.Am gasit asta pe google var count = 600; function hitPhpScript() { var xhr = new XMLHttpRequest(); xhr.open("get", "myscript.php", true); xhr.send(null); startCountdown(); } function startCountdown() { count = 600; doCountdown(); } function doCountdown() { count--; if (count > 0) { document.getElementById("countdown_label").innerHTML = count + " seconds left"; setTimeout("doCountdown()", 1000); } else { hitPhpScript(); } }