Table of contents
The script tag
- The script tag and its contents must be marked as pass-thru HTML.
- The form that contains the script tag must have the "Render pass through HTML in Notes" option selected on the form or page Properties box.
- Action hotspot
If you want to execute the checkAnswer() function when leaving a field on a Web page, you add the event handler to the markup for the field as shown in the following example:
<input type="text" id="ChargeCode" onblur="checkChargeCode();">
The same functionality can be achieved in Domino Designer by selecting the onBlur event of the field in the Objects tab and adding the function to the script area as shown in the following figure.
Coding the onBlur event handler for a field in Domino Designer
1. Open the form and place your cursor in the JS Header event.
2. Select Create > Resource > Insert Resource from the menu in Domino Designer.