Inline event handlers

The code for an inline script is included in the start tag of an HTML element. It is assigned to a property associated with an event.

<BODY LANGUAGE=JavaScript
onload='alert("Confidential!");'>

NoteScript for objects that are not HTML elements If an object such as a document has events but is not an HTML element, the script is contained in a SCRIPT element and uses the FOR property to associate itself with the object and the EVENT property to associate itself with an event:

<SCRIPT LANGUAGE=JavaScript 
FOR="document" EVENT="afterupdate">
alert("Confidential!");
</SCRIPT>

In the integrated Script editor, use the Script toolbar to select an object and an event. The script is stored in the property associated with the event.