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('My ASSS', 'pink')">Change</button>
<!--
Try this:
1. Change the value of the new content passed to the changeContent function.
2. Change teh colour passed to teh changeContent function.
-->
JavaScript
// Fucntion to changet the content
function changeContent(theMessage, theColor) {
document.getElementById("content").innerHTML = theMessage;
document.getElementById("content").style.color = theColor;
}