Does the logic keyword || only get the value true or false?
<p>The following code is from 'JavaScript by Example Second Edition' EXAMPLE 15.24<br>
I don't understand the code var evt = e || window.event; //Browser differences<br>
I think the var evt should be true or false, so evt.target should be null, right?</p>

<pre><code>function colorText(e){
  var evt = e || window.event; //Browser differences
  var evtTarget= evt.target || evt.srcElement;
  if(evtTarget.id=="first"){
div1.className="red";
}
else if(evtTarget.id == "second"){
div2.className="blue";
}
else{ div3.className="green";}
}
</code></pre>
