Javascript for auto refreshing one page once
-
Hi, I,m running an ajax site powered theme on my website and I’ve got an issue with one of my posts only showing thumbnails after being refreshed no matter what browser I use, I’ve tried a plugin that auto refreshes a single page but that didn’t work maybe cause its an ajax site and it also didn’t have the option to refresh the page/post once only in seconds, my question is, is there any javascript code I could add to my theme’s custom Javascript field that would refresh just the post I want once with no time caps, without having to refresh the post over and over again, I already found a code somewhere but it only worked for the homepage of my website, I would like to specify just a post. I know its possible. Please help me guys. ??
This worked for me but it only refreshed my homepage, I want to refresh just one post
<script>
window.onload = function()
{
if (!window.location.search)
{
setTimeout(“window.location+=’?refreshed’;”, .1000);
}
}
</script>
- The topic ‘Javascript for auto refreshing one page once’ is closed to new replies.