title: onClick event is not working in Safari but its working fine in IE/FF/Chrome/Opera browser
body: <p>I am using JavaScript onClick event it's working good with IE/FF/Chrome browser but it not working for Safari browser.</p>
  
  <p>The code which I am using are as follows:</p>
  
  <pre><code>heartSelectHandler = {
      clickCount : 0,
      action : function(select)
      {
          heartSelectHandler.clickCount++;
          if(heartSelectHandler.clickCount%2 == 0)
          {
              selectedValue = select.options[select.selectedIndex].value;
              heartSelectHandler.check(selectedValue);
          }
      },
      blur : function() // needed for proper behaviour
      {
          if(heartSelectHandler.clickCount%2 != 0)
          {
              heartSelectHandler.clickCount--;
          }
      },
      check : function(value)
      {
         alert('Changed! -&gt; ' + value);
      }
  }
  
  &lt;select onclick="javascript:heartSelectHandler.action(this);" onblur="javascript:heartSelectHandler.blur()" id="heart" data-role="none"&gt;
      &lt;?php for ($i = 20; $i &lt;= 150; $i++): ?&gt;
      &lt;option  value="&lt;?php echo $i; ?&gt;"&gt;&lt;?php echo $i; ?&gt;&lt;/option&gt;
      &lt;?php endfor; ?&gt;
  &lt;/select&gt;
  </code></pre>