¡@

Home 

javascript Programming Glossary: document.execcommand

Set cursor position on contentEditable <div>

http://stackoverflow.com/questions/1181700/set-cursor-position-on-contenteditable-div

selection.addRange range Delete cursor marker document.execCommand 'delete' false null Call callbacks here for var i 0 i afterFocus.length..

Persisting the changes of range objects after selection in HTML

http://stackoverflow.com/questions/13949059/persisting-the-changes-of-range-objects-after-selection-in-html

highlighted using the range object and the executeCommand document.execCommand BackColor false 'yellow' The changes highlighting the text as..

Javascript Highlight Selected Range Button

http://stackoverflow.com/questions/1622629/javascript-highlight-selected-range-button

since some browsers apply BackColor to the whole block if document.execCommand HiliteColor false colour document.execCommand BackColor false.. block if document.execCommand HiliteColor false colour document.execCommand BackColor false colour document.designMode off function highlight.. var range sel if window.getSelection IE9 and non IE try if document.execCommand BackColor false colour makeEditableAndHighlight colour catch..

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

since some browsers apply BackColor to the whole block if document.execCommand HiliteColor false colour document.execCommand BackColor false.. block if document.execCommand HiliteColor false colour document.execCommand BackColor false colour document.designMode off function highlight.. var range if window.getSelection IE9 and non IE try if document.execCommand BackColor false colour makeEditableAndHighlight colour catch..

Make a <br> instead of <div></div> by pressing Enter on a contenteditable

http://stackoverflow.com/questions/3080529/make-a-br-instead-of-div-div-by-pressing-enter-on-a-contenteditable

to the press of the Enter key event.preventDefault document.execCommand 'InsertHTML' true ' br ' This only works if the cursor is between..

Change CSS of selected text using Javascript

http://stackoverflow.com/questions/3223682/change-css-of-selected-text-using-javascript

since some browsers apply BackColor to the whole block if document.execCommand HiliteColor false colour document.execCommand BackColor false.. block if document.execCommand HiliteColor false colour document.execCommand BackColor false colour document.designMode off function highlight.. var range sel if window.getSelection IE9 and non IE try if document.execCommand BackColor false colour makeEditableAndHighlight colour catch..

Insert link in contenteditable element

http://stackoverflow.com/questions/5605401/insert-link-in-contenteditable-element

hyperlink contenteditable share improve this question document.execCommand does this for you in all major browsers document.execCommand.. does this for you in all major browsers document.execCommand CreateLink false http stackoverflow.com To preserve the selection..

Full text search in HTML ignoring tags / &

http://stackoverflow.com/questions/5886858/full-text-search-in-html-ignoring-tags

sel.collapse document.body 0 while window.find text document.execCommand HiliteColor false yellow sel.collapseToEnd document.designMode..

Highlight text range using JavaScript

http://stackoverflow.com/questions/6240139/highlight-text-range-using-javascript

For the other part the highlighting I'd suggest using document.execCommand for that. You can use my function below to set the selection.. use my function below to set the selection and then call document.execCommand . You'll need to make the document temporarily editable in non..

Does execCommand SaveAs work in Firefox?

http://stackoverflow.com/questions/833015/does-execcommand-saveas-work-in-firefox

in Firefox Why does this not work in ff chrome javascript document.execCommand 'SaveAs' 'true' 'http www.google.com' used as a bookmarklet..

Javascript: Cancel/Stop Image Requests

http://stackoverflow.com/questions/930237/javascript-cancel-stop-image-requests

downloads if window.stop undefined window.stop else if document.execCommand undefined document.execCommand Stop false Essentially it's like.. window.stop else if document.execCommand undefined document.execCommand Stop false Essentially it's like clicking the Stop button on..