Type: String
Availability: Read or write at run time only
The userScript property of the Window class contains a string that is used to set up scripts to be included as part of the HTML generation. Set this property dynamically at run time, by specifying the string in the code of your Web application.
The script is included in the HTML generate exactly as it is, and no validation is performed. It is therefore your responsibility to validate that the script will run on all Web browser platforms in which the application is expected to be deployed.
Scripts added to the Form object in your JADE code are generated before the HTML <BODY> tag. Scripts added to Control objects are generated before the control tag. See the Window class addWebEventMapping method for details about writing a function and including it as part of your user script to be invoked when a specified event occurs.