// Requires jQuery
<script src="http://code.jquery.com/jquery-3.1.1.js"></script>
<script type="text/javascript">
function doRefresh() {
$("#show").load("#show");
document.getElementById("refresh").innerHTML = Math.random();
}
$(function () {
setInterval(doRefresh, 5000);
});
// Call the function and set the timer
setInterval(myFunction, 10000)