A property that lets you set or read whether the document has been modified.
In script you can make the document "dirty" forcing the user to be prompted for save option beofre the document is closed.
TW.target.modified = true;
TW.information(null, "Document Modified?", TW.target.modified);
Created with the Personal Edition of HelpNDoc: Easily create Help documents