Name

WriteOutput

Synopsis

                  WriteOutput(string)

Writes text to the page output stream. WriteOutput( ) is meant to be used inside cfscript blocks but can also be used inside cfoutput sections. Examples:

<cfscript>
WriteOutput('The WriteOutput function works best inside cfscript blocks<br>');
</cfscript>
   
<cfoutput>
#WriteOutput('Although you can use it in cfoutput spaces, why would you?')#
</cfoutput>

Get Programming ColdFusion MX, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.