Service Studio 5.1 Help
JavaScript Editor
To add JavaScript to your eSpace,
web screens, or web
blocks use the JavaScript Editor which can be opened by clicking on
of the JavaScript property
of the elements.

JavaScript Editor Tabs
When you open the JavaScript Editor, the first tab contains the JavaScript of the element you're editing. However, since all elements may use the eSpace's JavaScript, an extra tab is made available for you to consult or edit the eSpace's JavaScript.
See Also
Adding JavaScript | Design Web Screens | About Web Blocks | Expression Editor