| javascript Programming Glossary: textinputrange.compareendpointsIs there an Internet Explorer approved substitute for selectionStart and selectionEnd? http://stackoverflow.com/questions/235411/is-there-an-internet-explorer-approved-substitute-for-selectionstart-and-selecti  endRange el.createTextRange  endRange.collapse false if textInputRange.compareEndPoints StartToEnd endRange 1  start end len  else  start textInputRange.moveStart.. start normalizedValue.slice 0 start .split n .length 1  if textInputRange.compareEndPoints EndToEnd endRange 1  end len  else  end textInputRange.moveEnd.. 
 How to get the start and end points of selection in text area? http://stackoverflow.com/questions/3053542/how-to-get-the-start-and-end-points-of-selection-in-text-area  endRange el.createTextRange  endRange.collapse false if textInputRange.compareEndPoints StartToEnd endRange 1  start end len  else  start textInputRange.moveStart.. start normalizedValue.slice 0 start .split n .length 1  if textInputRange.compareEndPoints EndToEnd endRange 1  end len  else  end textInputRange.moveEnd.. 
 update textarea value, but keep cursor position http://stackoverflow.com/questions/3286595/update-textarea-value-but-keep-cursor-position  endRange el.createTextRange  endRange.collapse false if textInputRange.compareEndPoints StartToEnd endRange 1  start end len  else  start textInputRange.moveStart.. start normalizedValue.slice 0 start .split n .length 1  if textInputRange.compareEndPoints EndToEnd endRange 1  end len  else  end textInputRange.moveEnd.. 
 IE's document.selection.createRange doesn't include leading or trailing blank lines http://stackoverflow.com/questions/3622818/ies-document-selection-createrange-doesnt-include-leading-or-trailing-blank-li  endRange el.createTextRange  endRange.collapse false if textInputRange.compareEndPoints StartToEnd endRange 1  start end len  else  start textInputRange.moveStart.. start normalizedValue.slice 0 start .split n .length 1  if textInputRange.compareEndPoints EndToEnd endRange 1  end len  else  end textInputRange.moveEnd.. 
 Is it possible to programmatically detect the caret position within a <input type=text> element? http://stackoverflow.com/questions/4185821/is-it-possible-to-programmatically-detect-the-caret-position-within-a-input-typ  endRange el.createTextRange  endRange.collapse false if textInputRange.compareEndPoints StartToEnd endRange 1  start end len  else  start textInputRange.moveStart.. start normalizedValue.slice 0 start .split n .length 1  if textInputRange.compareEndPoints EndToEnd endRange 1  end len  else  end textInputRange.moveEnd.. 
 How to get the selected text in textarea using jQuery in Internet Explorer 7? http://stackoverflow.com/questions/7186586/how-to-get-the-selected-text-in-textarea-using-jquery-in-internet-explorer-7  endRange el.createTextRange  endRange.collapse false if textInputRange.compareEndPoints StartToEnd endRange 1  start end len  else  start textInputRange.moveStart.. start normalizedValue.slice 0 start .split n .length 1  if textInputRange.compareEndPoints EndToEnd endRange 1  end len  else  end textInputRange.moveEnd.. 
 |