Question: I need JavaScript or jQuery something to change text every few seconds... without the user doing anything.

Example:

"Welcome" changes to "Salmat datang" changes to "Namaste", etc. after 3 seconds and loops back.

Answer: 
As others have said, [`setInterval`](https://www.w3schools.com/jsref/met_win_setinterval.asp) is your friend: 

```js
var text = ["Welcome", "Hi", "Sup dude"];
var counter = 0;
var elem = document.getElementById("changeText");
var inst = setInterval(change, 1000);

function change() {
  elem.innerHTML = text[counter];
  counter++;
  if (counter >= text.length) {
    counter = 0;
    // clearInterval(inst); // uncomment this if you want to stop refreshing after one cycle
  }
}
```

```html
<div id="changeText"></div>
```
```
setInterval(function(){
   alert('hello, do you have a beer?');
}, 1000);

```

where 1000 ms = 1 second.