Macro Language Reference > PIs > Text > <?js>
  
<?js>
Description
Allows Javascript code to be run from within a text stream, for example <?js formatting.write(hello)> or <?js return 2+2. If return is used as the last statement the resulting value is inserted into formatting, otherwise the PI produces no output.
Syntax
<?js javascript:w>
javascript
The Javascript code to be run