"Wee" <> wrote in message
news:3f153be4$...
> String.value.length and String.value doesn't work together in
>a single function in IE. I've no problem running either of this,
>but not together at the same time.
<snip>
> It works if I run only one of the statement above, but not both.
>No such problem in Mozilla or Opera.
> Bugs?
>
> pls comment.
<snip>
> function CalcWord(){
> var myMessage=document.Formcalc.splitword.value;
> document.writeln(myMessage);
The first document.writln opens, clears and replaces the current
document.
> var total_length=document.Formcalc.splitword.value.len gth;
So now there is no form and no textarea within it. ("document.Formcalc
is null or not an object")
> document.writeln(total_length); //missing here.
<snip>
You are lucky if it works in any browser.
Richard.
|