Synchronizing scroll positions of two HTML containers? 

by on February 8, 2010

Q: How can I scroll a div in sync with a textarea using JavaScript? The div will contain a “line #” reference with whatever is in the textarea, and it is for a code-editor terminal for my site. I am open to other approaches/objects to yield the same end-user effect.