K
Kevin Spencer
In JavaScript, you can use the length property of the value property of the
textbox to get the number of characters. Wire your Event Handler to the
"onchange" property of the textbox, like so:
<script type="text/javascript"><!--
function countChar(str)
{
window.status= str.length + " characters typed";
}
// --></script>
<input type="text" name="MyText" onchange="countChar(this.value)">
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
textbox to get the number of characters. Wire your Event Handler to the
"onchange" property of the textbox, like so:
<script type="text/javascript"><!--
function countChar(str)
{
window.status= str.length + " characters typed";
}
// --></script>
<input type="text" name="MyText" onchange="countChar(this.value)">
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.