Add JavaScript code to send to the client as return of this request.
If this request is a document load request, the code is added to the JavaScript initialization code, otherwise is an event based request and the code is added to the JavaScript event response.
Use this method exceptionally if you need to send custom code in this circumstance, otherwise use {@link ItsNatDocument#addCodeToSend(Object)} or {@link ClientDocument#addCodeToSend(Object)}.
@param code the code to send,
Object.toString()
is called to convert to string.
@see org.itsnat.core.script.ScriptUtil