Menu
Hello, been a long time since i’ve been here. anyway, why doesnt this work? eval statement does’nt work.
[code]<script>
function brreplace(kc,tv,tn){
if(kc==34){event.returnValue=false;}
else if(kc==39){event.returnValue=false;}
else if(kc==222){event.returnValue=false;}
else if(kc==13){
tv=tv+”<BR>”;
event.returnValue=false;
eval(“document.showForm.”+tn+”.value=”+tv);
}}
</script>
<form name=showForm>
<textarea name=”text0″ onKeydown=brreplace(event.keyCode,this.value,this.name);>
blah 0
</textarea>
<textarea name=”text1″ onKeydown=brreplace(event.keyCode,this.value,this.name);>
blah 1
</textarea>
</form>