Using JavaScript in HomeSite 4.0, Part I: The Application Object's Properties, Part II | WebReference

Using JavaScript in HomeSite 4.0, Part I: The Application Object's Properties, Part II


Using JavaScript in HomeSite 4.0, Part I

The Application Object's Properties, Part II

DocumentCache Read-only Array (of Objects)

We'll discuss this property in our next column.

DocumentIndex Read-Write Integer

Holds the tab index of the active document. Since multiple documents can be open simultaneously, each one has an index, based on its tab. For instance, in the following situation the value of the DocumentIndex index property is 2:

Several Tabs

Keep in mind that the first document (apppro.html) is equivalent to a value of 0. You can set the value of this property in order to determine the current document (the active one).

DocumentCount Read-only Integer

Returns the number of open documents. In the preceding example, the value of this property is 4.

ExeName Read-only String

Returns the filename of the application executable, including path. This property is equivalent to AppPath plus the name of the file (normally homesite4.exe). The value of this property could be "D:\PROGRAM FILES\ALLAIRE\HOMESITE4\HOMESITE4.EXE."

https://www.internet.com

Produced by Yehuda Shiran and Tomer Shiran

Created: September 13, 1999
Revised: September 13, 1999

URL: https://www.webreference.com/js/column48/apppro2.html