setTimeout() not executing as per requested
i want to use setTimeout to create recursion , which will run every 5 seconds
setTimeout(recursivefunction,5000);
but above code only run one time
i need it to run every five second from page loaded to page closed .