DocuVieware Reference Guide
RegisterOnDocumentClosed
Reference Guides > JavaScript API > Events > RegisterOnDocumentClosed
 RegisterOnDocumentClosed

This function allows you trigger a function of your own when the document closed event is fired.

RegisterOnDocumentClosed: function (docuViewareID, callback)

Parameters

docuViewareID
The identifier for the DocuVieware™ instance.
callback
The function you want to execute on document closed event.

Return Value

1 if error.