After refreshing.....it goes on to the main page but not on the current page. What to do if it will be on the same page after refreshing. I have one index.html page but with 6 swiper slides...
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script>
function autoRefresh_div()
{
$("#MyDIV").load("load.html");// a function which will load data from other file after x seconds
}
setInterval('autoRefresh_div()', 5000); // refresh div after 5 secs
</script>