Hello,
I am attempting to use JavaScript to 'highlight' text by changing it's background color:
<div id="foo" onMouseOver="highlight(this);"></div>
In JavaScript:
function highlight (word) {
document.getElementById (word.id).bgColor="blue";
}
This produces no effect. I also have an onClick event in the same div, can I not have onClick and onMouseOver together? Or am I doing something else wrong?
Thanks.