YUI: TextArea Counter

This example shows how to calculate line numbers for a textarea.

Words: 0Chars: 0Rows: 1Cols: 0

The Javascript