This is a discussion on "finding cursor position" within the JavaScript Forum section. This forum, and the thread "finding cursor position are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
finding cursor position
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
in the name of GOD, hi
i'm creating a BB Code Editor, I desined a button which when user click on it, it add some text in a textarea (for example by "body" name) my codes say it which : add text to the end of textarea, my code is this : function insert_code(){ document.getElementById("body").value=document.get ElementById("body").value+'[ bold ] [ / bold ]'; } but I want which this code add to the point which cursor in there. not to the end of it. If you help me I thank you ! Last edited by bahy; Jun 10th, 2007 at 11:27. |
|
|
|
|||
|
Re: finding cursor position
oh, plz help me
|
|
||||
|
Re: finding cursor position
Sorry, but I truly don't understand what you are asking
|
|
|||
|
Re: finding cursor position
look
i want design a button which when you click on it add some text such az "[bold][/bold]" in a textarea and where which cursor is there. |
![]() |
| Tags |
| text cursor |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Finding Developers | LordRaiden | Job Opportunities | 1 | Jul 2nd, 2007 20:42 |
| Cursor focus getting lost in IE | kallol | Web Page Design | 5 | Apr 10th, 2007 08:09 |
| Controlling the blinking cursor position in safari browser | vikki | JavaScript Forum | 0 | Nov 4th, 2006 05:54 |
| Custom cursor | bruno89 | Web Page Design | 16 | Aug 15th, 2006 00:49 |
| changing cursor icon | javanui | JavaScript Forum | 1 | May 24th, 2006 16:07 |