I need to loop and change the "hititle" word within 2 seconds
I tried sleep() and await wait() but it doesn't work.
Script:
function looptext() {
while(true) {
document.getElementById("hititle").value = '1';
wait(2000)
document.getElementById("hititle").value = '2';
wait(2000)
document.getElementById("hititle").value = '3';
wait(2000)
document.getElementById("hititle").value = '4';
wait(2000)
document.getElementById("hititle").value = '5';
}
}