Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
JS word count calculator
SUBMITTED BY:
Guest
DATE:
Aug. 24, 2012, 11:59 a.m.
FORMAT:
JavaScript
SIZE:
757 Bytes
Raw
Download
Tweet
HITS:
1692
Go to comments
Report
<
form
method
=
"POST"
>
<
table
border
=
"0"
cellspacing
=
"0"
cellpadding
=
"0"
>
<
tr
>
<
td
width
=
"100%"
>
<
textarea
rows
=
"12"
name
=
"charcount"
cols
=
"60"
wrap
=
"virtual"
><
/textarea>
<
/td>
<
/tr>
<
tr
>
<
td
width
=
"100%"
><
div
align
=
"right"
><
p
><
input
type
=
"button"
value
=
"Calculate Characters"
onClick
=
"countit(this)"
>
<
input
type
=
"text"
name
=
"displaycount"
size
=
"20"
><
/p>
<
div
align
=
"center"
><
center
>
<
/center></div></div></td>
<
/tr>
<
/table>
<
/form>
<
script
language
=
"JavaScript"
>
function
countit
(
what
){
formcontent
=
what
.
form
.
charcount
.
value
what
.
form
.
displaycount
.
value
=
formcontent
.
length
}
<
/script>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus