DataWindow property for setting a customized event handler

Properties of the DataWindow class allow you to handle client-side events in JavaScript code. The JavaScriptFile property specifies the JS file that contains JavaScript functions for handling individual client-side events. Make sure to deploy the JavaScript file that contains your customized event handling code. You assign the JavaScriptFile property in an #IF DEFINED -#END IF code block:

#IF Defined PBWEBFORM THEN
  dw_1.JavaScriptFile = “D:\Scripts\MyScriptFile.js” 
#end if