Textarea character/page counter

There are lots of javascript textarea counters/limiters out there,
but what I need is a counter that counts and displays the number
of characters being typed, the current page number(i.e say 160
characters make a page), and probably the number of characters
left per page. No limit to number of characters typed, just count
characters and pages and displays them…any help?


If im reading your post right you want a counter to which checks for 160 characters then creates a new page or am i not understanding correctly?

One way to get those value is:

characters = Number(totalCharacters % 160);
page = Number(totalCharacters / 160 + 1);


any link to an available one online?