I am using PHP conditions and want to know if I can run a JavaScript function without some one have to click on it using JavaScript:
if($value == 1)
I've found that you cannot do something like this in IE and other browsers. It does work in Firefox though. You have to echo out each line as posted in the other method.