NEW: Sign up to get freelance writing jobs in your inbox. SUBSCRIBE

Word Count Tracker

This little javascript word count tracker gives you lots of options to play with. Writing a novel? Choose word counts. Want to work towards a page count goal instead? Choose pages. Would you like to set a blog posting goal for the month or year? You can choose that below too! In fact, you can use this tracker to track just about anything -- miles run, pounds lost, dollars earned, etc. Just choose the "other" option from the drop-down below and you can customize the tracker to measure whatever you want.

Enter your goal, current progress, what you're measuring, and the size of the progress bar you want below and click "update" to see a preview and get your custom code. You can embed that code on your own website, blog, or forum signature (if it allows you to embed code) to share your goals and progress with the world. You can even choose whether or not you want to display the percentage. Enjoy!

"; } var error = 0; var code = "
"+perc+"

"+cur+" / "+max+" "+type+"
"; if (isNaN(max)) { document.getElementById('totalwordcount').style.border='1px solid #ff0000'; alert('Goal is not a number.'); error = 1; } if (isNaN(cur)) { document.getElementById('currentwordcount').style.border='1px solid #ff0000'; alert('Current is not a number.'); error = 1; } if ( error == 0 && cur > max ) { alert (cur+"-"+max); document.getElementById('currentwordcount').style.border='1px solid #ff0000'; alert ('Current can\'t be larger than the Goal'); error = 1; } if (error == 0 ) { document.getElementById('wordtrackercode').value = code; document.getElementById('wordtrackersample').innerHTML = code; } }

Goal:

Current:

Tracker Width:

What are you counting:

Show Percentage:

Your Code:

This is how it will look: