how to auto redirect a page based on given time? should i use javascript ? how?
<p>let's say i have this code</p>

<pre><code>$itemtoDisplayTime = $model-&gt;getItemTime()  // e.g 03:00pm
$currentTime = date('H:i'); //this is the system clock/time
</code></pre>

<p>is it appropriate to use javascript to automate the process of redirection without having to refresh the page ?
if so, how ?</p>

<p>let's say the $itemDisplayTime is now equal to $currentTime , how to use these variables in javascript or jquery if possible </p>
