CodePudding user response:
<meta charset="UTF-8">
<meta name="viewport" content="width=device - width, initial - scale=1.0" & gt;
<body>
<script>
Var arr=[
'aaaaaaaaa'
'BBBBBBBBB'
'CCCCCCCCC'
'DDDDDDDDD'
];
Var index=0;
The function update () {
Document. The getElementById (" textbox "). The innerHTML=arr [index];
Index (index + 1)=% arr. The length;
SetTimeout (update, 2000);
}
The update ();
</script>