Still getting my webfeet on in understanding the proper syntax for
crafting javascript statements. I've created this function that
ignores the code if the Tab key is pressed... oddly enough it works
just fine in IE and ignores the Tab key like I want it too, but in
Netscape it blows up.... I don't think the Tab key is being passed or
something else is amis. ???
<script type="text/javascript">
function showRemaining(formElement) {
if ((event.keyCode) != 9) {
var theForm1 = formElement.form;
var remainingDisplay = formElement.name + 'Remaining';
theForm1.elements[remainingDisplay].value = formElement.maxLength
- formElement.value.length;
}}
</script>
<input... onkeyup="javascript:showRemaining(this);"