The "external" property of the Document object, which "specifies whether
the current document is being viewed in the Acrobat application or in an
external window (such as a web browser)."
Detect whether this document is in a browser or not.
if ( this.external )
// Viewing from a browser
// Viewing in the Acrobat application.