It is possible to call any action from JavaScript by just adding the "$scope." or "neo." prefix to the action name. Use the JavaScript syntax to send the parameters.
Look at this sample: 


AlertBox "Hi!" "This is a message from VisualNEO Web" ""

BeginJS

  $scope.AlertBox("Hi!","This is a message from JavaScript","");

EndJS


or


BeginJS

  neo.AlertBox("Hi!","This is a message from JavaScript","");

EndJS


You can call your own NeoScript subroutines from JavaScript using the same syntax:


BeginJS

  $scope.subroutineName(param);

EndJS


or


BeginJS

  neo.subroutineName(param);

EndJS