Friday, 11 January 2013

How To Create A Focussable Image Button?

Surprizingly, it has not been that easy to create a focussable image button. There is a lot of incongruent information available out there. Hence, this post. The solution is quite simple when you know it:
      function doSomething() {
    <input type="image" tabindex="0" onclick="doSomething()"
The JSFiddle is available here.