including events whose specs do not define an <code>on${event}</code> property, such as <code>touchstart</code></p>
<pre><code class=language-javascript>function doSomething(e) {
    console.log(e)
}

m(&quot;div&quot;, {onclick: doSomething})</code></pre>
<p>Mithril accepts functions and <a href=https://developer.mozilla.org/en-US/docs/Web/API/EventListener>EventListener</a> objects. So this will also work:</p>
<pre><code class=language-javascript>var clickListener = {
    handleEvent: function(e) {
      