Can you post your svg? It seems to me if evt were a reserved word it would fail, not succeed. :)
Most references I found indicate you can pass anything as an event storage variable, and i doubt "e" is a reserved word. If you could post a link to your html+svg file, we can probably advise better.
-C
On Tue, Apr 25, 2017 at 2:34 AM, Steve Litt <slitt@...2357...> wrote:
Hi all,
Within a <svg> element in my HTML body, I can use onclick(evt), as exemplified below:
============================================================
<svg width="500px" viewBox="0 15 80 30"> <circle id=circ1 r="6" cx="10" cy="30" onclick="top.doit(evt)" /> </svg> ============================================================
I can change the "evt" to "event" and it still works, but if I change it to anything else, for example "e", it fails. Is evt some kind of reserved word within SVG?
By the way, if an item in HTML itself (like a paragraph) has an onclick, you need to remove the "top." and only "event" will work.
I have the rudiments of a clickable map using SVG, CSS and Javascript, and am starting to build it into something useful.
Thanks,
SteveT
Steve Litt April 2017 featured book: Troubleshooting Techniques of the Successful Technologist http://www.troubleshooters.com/techniques
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user