I have a JSP page which has to display the status of various jobs that are running. Some of these jobs take time, so it takes a while for their status to change from processing
Just a simple line of code in the head section can refresh the page
although its not a javascript function, its the simplest way to accomplish the above task hopefully.