Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <body> <div onmouseover="mOver(this)" onmouseout="mOut(this)" style="background-color:#D94A38;width:120px;height:20px;padding:40px;"> Mouse Over Me</div> <script> function mOver(obj) { obj.innerHTML = "Thank You" } function mOut(obj) { obj.innerHTML = "Mouse Over Me" } </script> </body> <!-- Mirrored from www.w3schools.com/js/tryit.asp?filename=tryjs_events_mouseover by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:36:32 GMT --> </html>
Result:
Try it Yourself - © w3schools.com