There’s a handy shortcut in Visual InterDev 6 that saves you from typing in the function code around an event. While you are in VID’s Source view, click the Script Outline tab and locate the object for which you need an event handler. Expand the object’s node and then double-click the event name or the lightning bolt icon next to it. VID creates the skeleton event code such as:
Notice that the skeleton handler is in the scripting language that you’ve set for your default–usually JavaScript for client-side scripts and VBScript for code that runs on the server.