I have an editable DIV with users inserting content and I need to obtain on each keyDown the distance their text is from the right hand margin, dynamically.
Anyone know if this is possible, without using a library like JQuery ?
Thanks!
JAB Creations
4:59 pm on Apr 21, 2011 (gmt 0)
You want to use the getComputedStyle method. Also thanks for asking how to do this correctly. :)