Illustrator
Web graphics
/
SVG
Add SVG interactivity to artwork
In the SVG Interactivity panel, select an event. (See
SVG events
.)
Enter the corresponding JavaScript, and press Enter.
This page on the Web