something like this but for alphabets:
<p id="result"></p> // this is code for random num gen ,I need something like this for alphabet.
<script>
var intrvl = setInterval(numbFunction, 500); //repeat function after 1.5 seconds(1500 ms)
function numbFunction() {
var x = Math.floor(Math.random() * 10 + 1); //return a random no. between 1 to 10
document.getElementById("result").innerHTML = x;
}
</script>
Aucun commentaire:
Enregistrer un commentaire