| View previous topic :: View next topic |
| Author |
Message |
PraveenAnekalmat
Joined: 04 May 2007 Posts: 4
|
Posted: Thu May 10, 2007 3:35 pm Post subject: How to get the cursor position of Textbox |
|
|
Hi all,
How can i get the position of the cursor in the text box on certain event?
For Example:
Text Box contain ABCDEFG and let the cursor be at position D. I will press backspace and in onKeyPress event i want to get the postion of D.
Is this possibe?Please help......
 |
|
| Back to top |
|
 |
|
|
LucasZ21 100+ Club

Joined: 26 Feb 2007 Posts: 195 Location: Mansfield, OH
|
Posted: Fri May 11, 2007 3:06 pm Post subject: Re: How to get the cursor position of Textbox |
|
|
I don't know if you can do that lol
I know that to get the cursor to go where you want it on a certain event is something like...
| Code: |
<script language="javascript">
Function = "movecursor()" {
document.form.textbox.focus()
}
</script>
|
Then you would call the function "movecursor()" in an event and it would focus the cursor on the textbox/area that you told it to. |
|
| Back to top |
|
 |
|