Click or drag to resize

getHasUnsavedChanges Method

Gets a value representing whether the PdfWebControl document contains unsaved changes.

Syntax
JavaScript
function getHasUnsavedChanges();

Parameters

None

Return Value

Type: Boolean

Returns true if the document has changed since its last save; otherwise false.

Examples
JavaScript
var myApi = new PdfWebControlApi("PdfWebControl1"); // where "PdfWebControl1" is the ID (ClientID) assigned to the PdfWebControl instance
window.alert("Does this document have unsaved changes? " + myApi.getHasUnsavedChanges());
See Also