SV: [thelist] Basic JavaScript question

Marcus Andersson marcan at home.se
Sat Oct 18 11:14:13 CDT 2003


>Try:
><td class="menuTable"><a href="news.jsp" class="menuText"
onmouseover="var m22 = getElementById('m22');
m22.firstChild.nodeValue='<div
class=\"menuText\";>Hello</div>';">News</a></td>

Hmm... Didn't really read the code first. I think you should use
innerHTML or use DOM to create your new node instead of using nodeValue.

/Marcus



More information about the thelist mailing list