Page reload with a variable function
<p>I am trying to write a code to make a page reload when a new Post is set. So I figured that I could use the variable as an image, since everytime a new post is set,the image of new post appears. </p>

<p>I started using the meta http refresh code. </p>

<p>I could use jQuery or javascript (i know they are same, just written differently)</p>

<p>I just know I'd like to have the page auto refresh with the condition of if image is appeared. or (new post)</p>

<p>Please dont negative vote this, I know Im jabbering on, but i guess i can't find the words I wanna say. </p>

<pre><code>&lt;script type=”text/javascript”&gt;
function pageRefresh(timeoutPeriod) {
setTimeout("location.reload(true);",timeoutPeriod);
}
&lt;/script&gt; 
</code></pre>

<p>and maybe i could use onSubmit, onLoad, onReady, or something that would work in this question. UGh lost for words</p>
