It is possible to call any action from JavaScript by just adding the "$scope." 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


For calling your own subroutines from JavaScript you should have to use first a special NeoScript command: NeoScriptToJS



This action will allow acces to NeoScript subroutines from JavaScript using this syntax:


NeoScriptToJS

BeginJS

  neoscript.subroutineName(param);

EndJS