dragosdydy
Junior Member
- Jan 23, 2012
- 116
- 50
Hello guys. I'm working on a HTML website and I'm wondering if there's any way to get random data from a TextFile and fill a TextBox with it.
This is what i want:
I have a .txt file with the following lines:
This is my 1st line of the text
This is my 2nd line of the text
This is my 3rd line of the text
This is my 4th line of the text
This is my 6th line of the text
This is my 7th line of the text
And then i have a HTML file with one TextBox. When the page loads, the text box will be filled with one random line from the .txt file.
Is there any way to do that with HTML or JavaScript? Thanks a lot.
This is what i want:
I have a .txt file with the following lines:
This is my 1st line of the text
This is my 2nd line of the text
This is my 3rd line of the text
This is my 4th line of the text
This is my 6th line of the text
This is my 7th line of the text
And then i have a HTML file with one TextBox. When the page loads, the text box will be filled with one random line from the .txt file.
Is there any way to do that with HTML or JavaScript? Thanks a lot.