title: Combine onlick and onmouseover in the same function
body: <p>I want to combine onclick and onmouseover in the same line. </p>
  
  <p>I have </p>
  
  <pre><code>if (var) {
          var.onclick = function() {
  //          do something
  }
  </code></pre>
  
  <p>I want to add </p>
  
  <pre><code>if (var) {
              var.onclick || var.onmouseover= function() {
      //          do something
      }
  </code></pre>
  
  <p>Something like that</p>