By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,247 Members | 1,057 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,247 IT Pros & Developers. It's quick & easy.

javascript to read a text file and display on website

P: 5
i want to keep this as simple as possible....

website - all html
event.txt (or event.html)

trying to figure out how to take a txt file and update a place on a website
i would like to not use div but if i have to then would like too..

simple text nothing more to update....

a script or something to help............banging my head
Jan 15 '08 #1
Share this Question
Share on Google+
2 Replies


P: 5
ok i figure it out...........

but now need it to set inside of a div tag.........possible?
Jan 15 '08 #2

acoder
Expert Mod 15k+
P: 16,027
To set the contents of a div tag:
Expand|Select|Wrap|Line Numbers
  1. document.getElementById("divtagID").innerHTML = val;
Jan 15 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.