By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,452 Members | 989 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,452 IT Pros & Developers. It's quick & easy.

Positioning the cursor in a textarea

P: n/a
Can someone suggest how I can either position the cursor at the beginning of
a specified line in a textarea or select the whole of a specified line in a
textarea?

Thanks,
Geoff
Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a


Geoff Soper wrote:
Can someone suggest how I can
select the whole of a specified line in a
textarea?


Possible for Mozilla browsers:
<http://www.faqts.com/knowledge_base/view.phtml/aid/32415/fid/130>
IE/Win has a text range API that in theory should allow that but my
attempts so far have failed as within a textarea that API gives strange
results as soon as line breaks are involved.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.