Ano-Tech Computers
Enter keyword:

SVG: how to assign onMouse, onMouseOver, onMouseOut etc.
Problem:
I'm trying to assign javascript event handlers such as onMouse, onMouseOver and onMouseOut to an SVG element but nothing seems to happen.
 
Solution:
SVG requires all such event handlers to appear in lowercase. Example:


 
Discuss this solution
Did this article solve your problem? Yes No Did not apply

We welcome anyone who is willing to contribute to this public knowledge base, contact siteadmin@atc.no if you have information you would like to share. The idea is not to replace the commercial support sites, but to publish those hard-to-find solutions you've found yourself looking for over and over again.

Show all articles