Write(text) Last updated: 19. Jun 2023
Outputs specified text to page content, same as write in javascript. Note that for API functions the output will not be returned to the user directly. It will written to the "output" buffer. Only if the "ContentDisposition" header is set the output will be returned.
Parameters
Name | Type | Description |
---|---|---|
text | string | Text to write to output. Same behaviour as in JavaScript. |
Returns
Nothing, but writes text to output stream at the position of the code.
Example
Code example (#JS)
#JS is mixed HTML (or other text file) with inline JavaScript with # starting and ending each inline statement.<p>Content above</p>
<p>#write("Hello" + " " + "world")#</p>
<p>Content below</p>
Output
The #JS code above produces the output shown below:<p>Content above</p>
<p>Hello world</p>
<p>Content below</p>