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...
How can I assign color to the mouse cursor in a web-page?  Can anyone suggest me a way to do it using any of the technologies e.g. HTML, CSS, JavaScript?...
I have a lot of <a> html tags without the href attribute for making onclick javascript calls. These links do not have a pointer style of cursor. They have text style cursor.  How can I set the cursor style to pointer for links without using the...
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...
I have a problem where I need to insert a text (string, may or may not have html tags) to a div. It has to be a div and not a textarea.  Is there anyway to do that? First of all, I need to get the cursor position, then inserting the text in that posi...
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&...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.