<input  type=button  value="<"       <input  id=demo  value="press  button">  <input  type=button  value=">"       <script>  function  go(n){  demo.focus();  with(document.selection.createRange()){moveStart("character",n);collapse();select();}  }  </script>