<html>
<head>
<title>innerHTML Javascript Example</title>
</head>
<body>

<script language="JavaScript">
var quotes = new Array();
quotes[0] = "'Only two things are infinite, the universe and human stupidity, and I'm not sure about the former'.<br /><small>Albert Einstein</small>";
quotes[1] = "'Do, or do not. There is no 'try''.<br /><small>Yoda</small>";
quotes[2] = "'Black holes are where God divided by zero.'<br /><small>Steven Wright</small>";

var currentQuote = 0;

function getQuote() {
    document.getElementById("box").innerHTML = quotes[currentQuote];
    currentQuote++;
    if (currentQuote > quotes.length - 1) currentQuote = 0;
}
</script>

<div id="box" onClick="getQuote();">CLICK ME FOR A QUOTE!</div>

</body>
</html>