Hi,
here is a simplistic javascript example to populate a textbox from vars in the script.
I am not sure whether this is what you wanted...
MusicmanCode:<script> var texts = Array('this is first text<br>multiline', 'another text'); function showtext(n) { document.forms.form1.ta.innerHTML = texts[n]; } </script> <form name=form1> <textarea name=ta rows=5 cols=50></textarea><br> <input type=button value=text1 onclick='showtext(0)'> <input type=button value=text2 onclick='showtext(1)'> </form>




Reply With Quote
