Add/Edit Script dialog box
[Interactivity window - Script tab - Add Script button/Edit Script button]
Use this dialog box to specify a script to be triggered by a specific event on an object. Note that scripts only work if you save the file in SVG format.
- Event
Select the event that will trigger the action. - Script
Enter the script that will be triggered by the selected event.
To check that the specified script works, select the [View > Preview SVG in Browser] menu command or press <F11>.