Refresh (reload) a page once using jQuery?
Alright, I think I got what you’re asking for. Try this if(window.top==window) { // You’re not in a frame, so you reload the site. window.setTimeout(‘location.reload()’, 3000); //Reloads after three seconds } else { //You’re inside a frame, so you stop reloading. } If it is once, then just do $(‘#div-id’).triggerevent(function(){ $(‘#div-id’).html(newContent); }); If it is … Read more