Run a JavaScript function from a php if statement
<p>I am using php conditions and want to know if I can run a JavaScript funtion without some   one have to click on it using JavaScript:   </p>

<pre><code>if($value == 1)     
{  
    javascript to run the function  
}
</code></pre>

<p>How would I do that?</p>
