The user can enter up to 6 letters in INPUT, when he presses PLAY the word will be displayed letter after letter (setinterval 500), please help me
**i stucked
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”UTF-8″>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<meta http-equiv=”X-UA-Compatible” content=”ie=edge”>
<title>Document</title>
<script>
var timer;
window.onload = function () {
id_h2.innerHTML = id_input.value;
timer = setInterval(add1, 500);
}
function add1() {
id_h2.innerHTML = id_input.value;
if (id_input.value >= 9) {
clearInterval(timer);
}
}
</script>
</head>
<body align=center>
<h1>Enter World:</h1>
<h2 id=”id_h2″></h2>
<input type=”text” id=”id_input”><br><br>
<input type=”button” value=”start” onclick=””>
</body>
</html