Can't add listener to a SVG in Internet Explorer using SVGweb
问题 This code works great in Firefox, but not in IE. I've read the documentation of SVGWeb (http://svgweb.googlecode.com/svn/trunk/docs/UserManual.html), but I don't find/understand the solution, any idea? window.onsvgload = function() { carga(); var mySVG = document.getElementById("mySVGObject").contentDocument; mySVG.addEventListener('click', function(evt) { alert(evt.target.id); }, false); } I'm using things like this in IE without problems: mySVG.getElementById('Color2').style.fill='#00cc00'