Javascript DOM Example:
Javascript DOM Example:
<html>
<head>
<title>Untitled</title>
<script language="JavaScript">
// through the DOM, we can change the values of ‘myspan’
function change() {
document.all.myspan.innerHTML = 'The text has changed';
}
function changeback() {
document.all.myspan.innerHTML = 'Now it has changed back!';
}
</script>
</head>
<body>
<span id="myspan“
onmouseover="change()"
onmouseout="changeback()"> We'll change this text. </span>
</body>
</html>
Previous slide
Next slide
Back to first slide
View graphic version
Home
Directions
Quotes
Photos
CF Conf Central