simple DOM change
Sample changing the content of the DOM
HTML
<!-- Business Web Technologies -->
<!-- School of Information Systems -->
<!-- Curtin University -->
<!-- Division for content -->
<div id="content">
This is the old content
</div>
<button onclick="changeContent()">Change</button>
JavaScript
// Fucntion to changet the content
function changeContent() {
document.getElementById("content").innerHTML = "this is the new content";
document.getElementById("content").style.color = "gray";
}
// Try this:
// The color style property changes the foreground color.
// Change the value of the backgroundColor property instead of the color property.
//