selection-object

Issue with IE Selection and Range

I'm trying to get the start element and the end element of a selection and the offset of the selection in each, i do this in firefox as follows: var delselection = window.getSelection(); var startOffset = delselection.anchorOffset; var endOffset = delselection.focusOffset; var startNode = delselection.anchorNode.parentNode; var endN...

Using Selection.Find in Microsoft.Office.Interop.Word to find tracked changes in a document

I am currently using the code below within a VB.Net application to find specific text in a Word document. The text is surrounded by symbols represented by the character codes in the .Text statement. The code below is working fine. The issue now is that sometimes the desired text within a document has been marked for deletion and appea...

Prevent text selection after double click

I'm handling the dblclick event on a span in my web app. A side-effect is that the double click selects text on the page. How can I prevent this selection from happening? ...