Once you have programmed the script, you can select the "event" property in the tag properties dialog and asign the script to the "change" sub-property.
Once you have programmed the script, you can select the "event" property in the tag properties dialog and asign the script to the "change" sub-property.