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...
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....
In JavaScript, there is a method window.getSelection(), that lets me get the current selection that the user has made.  Is there a corresponding function, something like window.setSelection(), that will let me set, or clear, the current selection?...
I'm trying to implement something like Twitter's tweet box, specifically:   Automatically highlights text in a red background when the overall length exceeds 140 characters. Automatically highlights links, mentions, and hashtags in blue.   Th...
Following scenario: When selecting text on iOS Safari (lets assume a "normal" html page) an blue overlay occurs, indicating that you have selected a specific passage. Furthermore, you are able to change that selection, in order to correct you...
I am trying to fix an application in IE11 and I stuck in this bug:  In the older version of IE ther was a simple selection object but it is deprecated in IE11. The MSDN page offer to use getSelection instead of that, but it is not the same. I need to...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.