When you use the Quick Edit view to add scripted events to a tag in an HTML or JSP file, you have the option of dragging a snippet from the Snippets view into the script editor. For example, you can use a snippet that you created.
To use snippets effectively, you must be able to understand the script that is inserted. You can also select snippets from a menu, which shows only the scripts that will work with the current event.
After you have selected a tag and associated an event with it, follow these steps to use a snippet: