Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- Obtain actual rendered margin


trillianjedi - 12:59 pm on Apr 18, 2011 (gmt 0)


Hi guys,

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!


Thread source:: http://www.webmasterworld.com/javascript/4299790.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com