Forum Moderators: open
Thanks,
Nate
try it like this...
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css">
</style>
<script type="text/javascript">
window.onload=function(){
anc=document.getElementById('sports').getElementsByTagName('a');
for(c=0;c<anc.length;c++) {
anc[c].onclick=function() {
showSport(this.firstChild.nodeValue);
}
}
}
function showSport(word){
document.getElementById('linkName').firstChild.nodeValue=word;
}
</script></head>
<body><ul id="sports">
<li><a href="#">Baseball</a></li>
<li><a href="#">Basketball</a></li>
<li><a href="#">Football</a></li>
<li><a href="#">Hockey</a></li>
</ul><div id="linkName"> </div>
</body>
</html>
birdbrain