Currently, I am running a function every five seconds.
setInterval(function(){loadLog()},5000);
However, how can I also run the function on demand (on the click of a button) without having to wait for the intervals?
I think that I MAY need to use something like clearInterval, but I'm not sure.