my dog learned polymorphism*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "cursor position" Watch "cursor position" New topic
Author

cursor position

Lee Xu
Ranch Hand

Joined: Aug 24, 2001
Posts: 77
hi,
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?
Thanks
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 ...>
</textarea>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: cursor position
 
Similar Threads
How to get or set the caret position in text (JavaScript)
Positioning the cursor in an input field
Controlling Where a JScrollPane Opens
JTextPane
Remove focus