run javascript in WhileTrue

hi. may i know how to run a javascript function when WhileTrue is triggered?

Theoretically, you could put a <Callback Handler="{someFunction}" /> anywhere you like.

Please note that While*-triggers have continuous progress (they can be true/false for an extended period of time), while Callback is a pulse trigger. As such, it plays nicely with other pulse triggers, such as Clicked.

It would be better if you could explain what it is that you are trying to achieve, since there is probably a better way to do it.