I have two test pages: page M and Page NM. They are both identical, in that they have one input textbox. The only difference is that M has a meta tag, and NM doesn't.
The meta tag looks like this
<meta http-equiv="X-UA-Compatible" content="IE=10"/>
Of course, IE=9 or IE=8 would also work. The edit control could be a textbox, password, textarea, contenteditable div, what have you. I can always find the current caret position using either
document.getElementById('ControlName').selectionStart.toString()
or
window.getSelection().focusOffset.toString()
This doesn't work on the NM page. How can I get the caret position when there is no meta tag on a page? Thanks for looking