This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Count number of characters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Count number of characters" Watch "Count number of characters" New topic

Count number of characters

Sapan Shah

Joined: Jan 01, 2010
Posts: 25
I want to count a number of dot(.) in a string which i am entering in a textfield.

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42958
I don't see a question in there ... does the code not work? If so, how does it deviate from what you expected it to do?
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
You can not use document.write after the page load.

Note: when you post code, please use code tags. Select the code and click the wonderful button that says "Code" on it.

I agree. Here's the link:
subject: Count number of characters
It's not a secret anymore!