Need help ..
Hy,.
I'm trying to do something .. of medium complexity .. from my point of view .. but i can`t do it ..
In short ..
Let's say we have index.html and the body is linked to this ..
<span id=news>News 1</span>
Well .. i created a javascript that can change the News 1 to any text that i want ..
var news;
function el(id) {
if (document.getElementById) {
return document.getElementById(id);
} else if (window[id]) {
return window[id];
}
return null;
}
function updateNews() {
if (!news) {
return;
}
news.innerHTML = 'test';
}
so far so good .. but now i want something else .. i want this script to load the string that needs to change from .. let's say from a text file .
Is this possible ?

