If I for example have   <p> some long text </p>   on my HTML page, how can I know that cursor of mouse is for example above the word 'text'?...
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...
I've had a look round the web for solutions, and there are some, but they all seem to split code into supporting IE and Firefox. I was wondering if there's a more elegant way which would work on every browser, to insert some text at the cur...
I am trying to somewhat duplicate the "autocorrect" functionality seen in programs like Microsoft Office's Outlook.  For starters, anytime a user types "a " (the letter a and a space) at the beginning of a line I want to change th...
I have seen this tendency on some websites now, where the default cursor is replaced with a new cursor – in many cases circles  These cursors are interactive – with interactive i mean when hovering an a-tag it changes size and color.  On this web...
Okay, I've been looking all over the web to find a solution but I couldn't find one, is there a way to get the word before the caret position in an editable div so a bit like:  This is some| demo texts   This should return the word "some&...
Is it possible with javascript?  I'm trying to implement a scratchcard type thing, and I was wondering if the user could 'scratch it' with his cursor and then javascript would remove/erase the image to show the text below.  But i've n...
I have this page that does some funky database stuff that takes a couple seconds to process, and in the meantime I'd like to set a "wait" cursor so the user doesn't flip out and keep clicking the button. I've looked at the   docum...
Is there a way to set the cusror position in GWT RichTextArea. There is method setCusrorPosition() to do so in TextArea, but not in RichTextArea. Perhaps there is a native JavaScript (called from GWT) that could set the cursor position in the RichTex...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.