javascript Programming Glossary: document.designmode
Slow highlighting in Firefox http://stackoverflow.com/questions/12505602/slow-highlighting-in-firefox in array hiliteRanges for var i 0 i hiliteRanges.length i document.designMode on var selHilites window.getSelection if selHilites.rangeCount.. document.execCommand 'inserthtml' false insertedHTML document.designMode off Is there any way to speed up the processing We could have..
Javascript Highlight Selected Range Button http://stackoverflow.com/questions/1622629/javascript-highlight-selected-range-button if sel.rangeCount sel.getRangeAt range sel.getRangeAt 0 document.designMode on if range sel.removeAllRanges sel.addRange range Use HiliteColor.. false colour document.execCommand BackColor false colour document.designMode off function highlight colour var range sel if window.getSelection..
How can I highlight the text of the DOM Range object? http://stackoverflow.com/questions/2582831/how-can-i-highlight-the-text-of-the-dom-range-object if sel.rangeCount sel.getRangeAt range sel.getRangeAt 0 document.designMode on if range sel.removeAllRanges sel.addRange range Use HiliteColor.. false colour document.execCommand BackColor false colour document.designMode off function highlight colour var range if window.getSelection..
getSelection & surroundContents across multiple tags http://stackoverflow.com/questions/2584301/getselection-surroundcontents-across-multiple-tags if sel.rangeCount sel.getRangeAt range sel.getRangeAt 0 document.designMode on if range sel.removeAllRanges sel.addRange range Use HiliteColor.. false colour document.execCommand BackColor false colour document.designMode off function highlight colour var range sel if window.getSelection..
Change CSS of selected text using Javascript http://stackoverflow.com/questions/3223682/change-css-of-selected-text-using-javascript if sel.rangeCount sel.getRangeAt range sel.getRangeAt 0 document.designMode on if range sel.removeAllRanges sel.addRange range Use HiliteColor.. false colour document.execCommand BackColor false colour document.designMode off function highlight colour var range sel if window.getSelection..
Javascript: how to un-surroundContents range http://stackoverflow.com/questions/4479151/javascript-how-to-un-surroundcontents-range if sel.getRangeAt range sel.getRangeAt 0 document.designMode on if range sel.removeAllRanges sel.addRange range document.execCommand.. sel.addRange range document.execCommand bold false null document.designMode off else if document.selection document.selection.createRange..
is there no way to create a reversed (i.e. right-to-left) selection from JavaScript? http://stackoverflow.com/questions/4801464/is-there-no-way-to-create-a-reversed-i-e-right-to-left-selection-from-javascr bookmarklet but line wrapping added for clarity javascript document.designMode 'on' var r document.createRange d document.getElementsByTagName..
Android WebView Javascript getSelection http://stackoverflow.com/questions/4892111/android-webview-javascript-getselection if sel.getRangeAt range sel.getRangeAt 0 document.designMode on if range sel.removeAllRanges sel.addRange range Use HiliteColor.. false colour document.execCommand BackColor false colour document.designMode off else if document.selection document.selection.createRange..
Full text search in HTML ignoring tags / & http://stackoverflow.com/questions/5886858/full-text-search-in-html-ignoring-tags function doSearch text if window.find window.getSelection document.designMode on var sel window.getSelection sel.collapse document.body 0.. HiliteColor false yellow sel.collapseToEnd document.designMode off else if document.body.createTextRange var textRange document.body.createTextRange..
Remove highlight added to selected text using JavaScript? http://stackoverflow.com/questions/8076341/remove-highlight-added-to-selected-text-using-javascript var range sel.getRangeAt 0 sel.removeAllRanges document.designMode on sel.addRange range document.execCommand HiliteColor false.. HiliteColor false #ffffcc sel.removeAllRanges document.designMode off How do I then remove the highlighted color and restore the..
|