I have a function called goRight() which does some stuff when I click a div called "goright".
I want to make it so that when I hover over the div "goright" it will call the function repeatedly (with a small delay) for as long as I'm hovering, and then do nothing and stop once i move the mouse away.
I have experimented with setInterval but I think I'm misunderstanding how it works so it isn't functioning.
Thanks.