JavaScript buttons are used whenever you which to run a JavaScript on a button click. The functionality you can achieve using these buttons is only limited by your knowledge of JavaScript. Some simple examples of their use:
Copy content of one field to another, e.g., Invoice Address to Delivery Address
Tick the "Show QuickCode" checkbox to have CallScripter display built-in and easy access helper functions. the following example shows the disableFields helperfunction and its syntax as displayed using the QuickCode option: