Is there a way to save the changes like changing the background of HTML text that span over multiple tags so that when it is loaded again the changes made should be reflected in the HTML page.  EDIT: Detailed explanation.  When the HTML page is loa...
In JavaScript, it's possible to programmatically select text in an input or textarea element. You can focus an input with ipt.focus(), and then select its contents with ipt.select(). You can even select a specific range with ipt.setSelectionRan...
I need the coordinates in pixels of the beginning of the text selection (anywhere on the page, not in a textarea).  I tried using the cursor coordinates but this didn't work quite well because the cursor coordinates and the beginning of the sel...
Currently I'm getting the selected text in the browser doing this:  window.getSelection();   Now I need to show a tooltip above that text when pressing a custom key(note that the mouse could not be over the text anymore), so in order to do that I...
When selecting a block of text (possibly spanning across many DOM nodes), is it possible to extract the selected text and nodes using Javascript?  Imagine this HTML code:  <h1>Hello World</h1><p>Hi <b>there!</b></p>...
There are so many issues with contenteditable divs and deleting html and/or non content editable content inside editable divs.  Using an answer by the excellent Tim Down here: How to delete an HTML element inside a div with attribute contentEditable?...
When double-clicking on a html page most browsers select the word you double-click on (or the paragraph you triple-click on). Is there a way to get rid of this behavior?  Note that I do not want to disable regular selection via single-click+dragging;...
Does anyone know of any cross-browser user selection range libraries written in javascript?  I found a few jQuery plugins, (which quite frankly are too limiting and very buggy).  I would just like to know what you have found out there. Don't send...
Is there a function in javascript to just deselect all selected text? I figure it's got to be a simple global function like document.body.deselectAll(); or something....
When selecting texts in HTML documents, one can start from within one DOM element to another element, possibly passing over several other elements on the way. Using DOM API, it is possible to get the range of the selection, the selected texts, and ev...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.