title: Firefox not registering onclick event handler
body: <p>Below are two snips of code for assigning an event handler for an onclick event. Version One works in IE, FF, Safari and Chrome. Version Two works in IE, Safari and Chrome, but not in FF. In Version One, I register the event handler in the markup. In Version Two, I use a newer, and supposedly more robust, method for registering the event handler. </p>
  
  <p>Using firebug, it looks like the onclick event handler is not getting registered, though I cannot see why not. Any ideas appreciated. Thanks.</p>
  
  <pre>
  ***************  Version One  ******************************
  &lt script type="text/javascript"&gt
  
  function handler()
  {
      // do something here
  }
  
  &lt/script&gt
  
  &lt a id="playerFive" class="player" onclick="handler()"&gt
      &lt img src="./images/speakerIcon25pxFFF4E0.png" alt=""/&gt
  &lt/a&gt
  ************************************************************
  
  
  ***************  Version Two  ******************************
  &lt script type="text/javascript"&gt
  
  function handler()
  {
      // do something here
  }
  
  &lt/script&gt
  
  &lt a id="playerFive" class="player"&gt
      &lt img src="./images/speakerIcon25pxFFF4E0.png" alt=""/&gt
  &lt/a&gt
  
  &lt script type="text/javascript"&gt
  
  playerFive.onclick = handler;
  
  &lt /script&gt
  ************************************************************
  </pre>