Use
JavaScript actions are typically used for simple JavaScript logics that have no major connection to other functionalities in the project. The use of a Code-Behind file is recommended in cases where several JavaScript actions are configured, since the code is available centrally in one place, i.e. not distributed across several places.
Typical use cases
- Logging messages to the browser console
- Output of info messages in popup windows for debugging purposes
- Calling simple framework API functions
Special statements
- Breakpoint:
debugger;
This statement sets a breakpoint at the current location and stops the program when the development tools of the browser are open.