run a javascript function on if statement
- by user295189
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.
so
if($value == 1)
{
javascript to run the function
}
how would I do that
thanks