title: JS Pointer Lock
body: <p>I'm having trouble with pointer Locking. My code looks something like this...</p>
  
  <pre><code>Canvas = document.createElement('canvas');
  ...(Parameters)...
  document.body.appendChild(Canvas);
  
  Canvas.requestPointerLock = Canvas.requestPointerLock ||
               element.mozRequestPointerLock ||
               element.webkitRequestPointerLock;
  
  Canvas.requestPointerLock();
  </code></pre>
  
  <p>When I run my code nothing happens with the pointer lock (everything else run noramly). The code i showed is just what i think is relevant to the issue but if more code from my program is needed just tell me.</p>