Writing JavaScript in a page header

About this task

The Programmer's pane provides a placeholder called JS Header on the Objects tab that allows you to write JavaScript in the header of a page, form, or subform. JavaScript written in the header in this way does not require a formula to return a JavaScript function, or text to be marked as passthru HTML.

Procedure

  1. Click JS Header on the Objects tab.
  2. Select Web or Client from the first Run drop down list to indicate whether this code executes when accessed by a Web browser or the Notes client.
  3. Select JavaScript or Common JavaScript from the second drop down list.

    If you select Common JavaScript, the code you enter executes in both the Notes client and a Web browser.

  4. Write your JavaScript in the Script area.