I'm looking for a way to use javascript to change a certain block of already-loaded text. I have a main section of my page that contains text and I want that section of text to be updated when someone clicks on a specific link.
Here is what I have so far (mind you I no little about Javascript):
Code:
function rewrite(title, content) {
document.all.mainText.innerText = content;
document.all.mainTitle.innerText = title;
}
This seemed to work with IE, but with Chimera it doesn't.
Could someone give a method that would allow for this to work with all browsers?