title: How do you set focus to the HTML5 canvas element?
body: <p>I'm using the HTML5 <code>&lt;canvas&gt;</code> element in Firefox 2.0.0.16 and in Safari 3.1.2, both on my iMac.  (I've tried this in Firefox 3.0 on Windows as well, also to no avail.) The tag looks like this: </p>
  
  <pre><code>&lt;td&gt;
     &lt;canvas id="display"
             width="500px"
             height="500px"&gt;
     &lt;/canvas&gt;
  &lt;/td&gt;
  </code></pre>
  
  <p>I have a button to "activate" some functionality that interacts with the canvas. That  button's <code>onclick()</code> event calls a function. In that function I have the following line:</p>
  
  <pre><code>document.getElementById("display").focus();
  </code></pre>
  
  <p>This does not work. Firebug reports no error. But the focus still remains where it was. I can click on the canvas or tab towards the canvas and focus will be lost from the other elements, but apparently never be gained on by the canvas (The canvas's <code>onfocus()</code> event never fires).  </p>
  
  <p>I find this odd.  Is it that the canvas simply cannot get focus, or am I missing something here?  Any insight would be appreciated.</p>
  
  <p>Thank you.</p>