To enhance Web applications, a JavaScript API is now available with which you can also send commands within JavaScript functions to achieve a more flexible design in your Web Application.
For more information about using JavaScript in Web applications, see: