var ndata=new Array(datan)
I simply want it to print the output (value of variable "resprint") into this box (instead of the word "data_no_1"):
Thanks a lot for your reply WootWoot
That is almost full rewrite of it
But even though -unfortunately- this will always display in the text box:
And if it is not clear: This script is intended to display a random text each time, and it is taken from the five values in the array! The value set in the text box (i.e. data_no_1) is just putted by me to show you that it should display one value from the array each time, but it should not be there actually I think there should be something else, I tried already: value="document.write(resprint)" and didn't work at all.
Thank you very much!
I'm wondering if there is a way to include a fixed tag before and after each value in the array, like a <url> before any value printed in the box, and another </url> after each value printed in the box!
"URL" isn't a known HTML tag. You're referring to the "A" tag and it could be added by browsing all elements of your array, such as :