aspose file tools*
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 Java 8 in Action this week in the Java 8 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 ...>
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: cursor position
Similar Threads
How to get or set the caret position in text (JavaScript)
Controlling Where a JScrollPane Opens
Positioning the cursor in an input field
Remove focus