Get your CodeRanch badge!*
The moose likes HTML, CSS and JavaScript and the fly likes cursor position Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "cursor position" Watch "cursor position" New topic

cursor position

Lee Xu
Ranch Hand

Joined: Aug 24, 2001
Posts: 77
I create a form which has a text area field.But
whenever I click on text area, cursor is positioned on the middle of the text area.Is there any way to position the cursor at the beginning whitout pressing backspace?
Yuriy Fuksenko
Ranch Hand

Joined: Feb 02, 2001
Posts: 413
In what browser are you getting that?
By the way, make sure you close your textarea right after open tag, I mean
<textarea ....></textarea>,
not something like
<textarea ...>
I agree. Here's the link:
subject: cursor position
Similar Threads
Controlling Where a JScrollPane Opens
Positioning the cursor in an input field
How to get or set the caret position in text (JavaScript)
Remove focus