[Javascript] Get the position of the cursor in a textarea?

Peter-Paul Koch gassinaumasis at hotmail.com
Tue Jun 24 08:20:35 CDT 2003



>Actually, it is:

>   if (objEl.createTextRange && objEl.caretPos){
>    var caretPos = objEl.caretPos;

Oh? Interesting to know. Is it cross browser or IE only?

-------------------------------------------------------------------
ppk, freelance web developer
Interactie, copywriting, JavaScript, integration
http://www.xs4all.nl/~ppk/
Column "Keep it Simple": http://www.digital-web.com/columns/keepitsimple/
New: Forms, usability and the W3C DOM:
http://digital-web.com/features/feature_2003-05b.shtml
------------------------------------------------------------------

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



More information about the Javascript mailing list