title: Set keyboard caret position in html textbox
body: <p>Does anybody know how to move the keyboard caret in a textbox to a particular position?</p>
  
  <p>For example, if a text-box (e.g. input element, not text-area) has 50 characters in it and I want to position the caret before character 20, how would I go about it?</p>
  
  <p>This is in differentiation from this question: <a href="https://stackoverflow.com/questions/499126/jquery-set-cursor-position-in-text-area">jQuery Set Cursor Position in Text Area</a> , which requires jQuery. </p>