Reputation: 8089
I have searched for the answer here, but unsuccessfully.
So, I've got SVG inside an html page, and I'd like to catch onmouseover
event this way:
<g id="node1" class="node" onmouseover="showTooltip(event,'blabla',0,200)">
which works file in Chrome.
To use this in Firefox I'm trying to use Yahoo dom event library. Using it I can catch this event in Firefox, but not inside SVG:
event is not defined
How can I use onmouseover
event inside SVG?
Upvotes: 0
Views: 2311
Reputation: 124249
Try using evt rather than event. This example works in firefox: http://www.w3.org/TR/SVG/images/script/script01.svg
Upvotes: 3