how do u change the src of a javascript tag (by using a javascript method that is)

cause i need to upload info from a text file to a <div>