[Javascript] Get the position of the cursor in a textarea?
Chris Tifer
christ at saeweb.com
Tue Jun 24 08:25:54 CDT 2003
No love on NN. I just tried it, but at least it will work for IE. Like
I say though, the code is cryptic looking to me.
Chris Tifer
http://emailajoke.com
----- Original Message -----
From: "Peter-Paul Koch" <gassinaumasis at hotmail.com>
To: <javascript at LaTech.edu>
Sent: Tuesday, June 24, 2003 9:20 AM
Subject: Re: [Javascript] Get the position of the cursor in a textarea?
>
>
> >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
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
More information about the Javascript
mailing list