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
This website uses cookies to identify your session and other necessary functions. By using this website, you are agreeing to our Terms of Use and Privacy Policy (updated April 26 2021).
Learn About Cookies
Got it!