title: javascript: How to check if an element is clickable or not
body: <p>My naive approach is the following:</p>
  
  <pre><code>function isClickable(id){     
       elem = document.getElementById(id);
       if (elem.nodeName.toLowerCase() == 'a' || typeof(elem.click) != 'undefined'){
          return true;     
       }else{
          return false;     
       }
  }    
  </code></pre>
  
  <p>Is there anything better I can do?  </p>