Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


How to get the cursor position of Textbox



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> JavaScript Forum
View previous topic :: View next topic  
Author Message
PraveenAnekalmat



Joined: 04 May 2007
Posts: 4

PostPosted: Thu May 10, 2007 3:35 pm    Post subject: How to get the cursor position of Textbox Reply with quote

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......
Question
Back to top
View user's profile Send private message
LucasZ21
100+ Club


Joined: 26 Feb 2007
Posts: 195
Location: Mansfield, OH

PostPosted: Fri May 11, 2007 3:06 pm    Post subject: Re: How to get the cursor position of Textbox Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> JavaScript Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap