I tried the following to change a span to red on mouseover and black on mouseout:
<span onmouseover="this.style.color='red' onmouseout=this.style.color='black'">Mouse over me!</span>
but it does not work!
How can I bind more than one event to a single element using JavaScript?