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

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

RegisterOnNewDocumentLoaded: function (docuViewareID, callback)

Parameters

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

Return Value

1 if error.