Mouse Events on JsFiddle not working?
I've got my fiddle here, but I can't understand why it's not calling my function on the 'onmouseout' event. http://jsfiddle.net/foreyez/Xf6LW/ any ideas? Works fine, you just needed to put the function in the head (or body after the element is in the DOM) of the document. jsFiddle example It's because the functions you create in the JavaScript panel are not global when you have the onLoad option selected. Your JavaScript gets wrapped in a function. If you do want them to be global you have to either do what j08961 suggested, by changing that dropdown to say no wrap (body or head) will work The