Share via


Window.Caption Property

InfoPath Developer Reference

A read/write property that returns or sets the caption text for the window represented by the Window object. Read/write

Version Information
 Version Added:  InfoPath 2003

Syntax

expression.Caption

expression   An expression that returns a Window object.

Return Value
String

Remarks

When setting the caption text for a window, the caption will always be followed by " - Microsoft Office InfoPath 2007".

Security Level 2: Can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.

Example

In the following example, the Caption property is used to set the caption text of the active window.

JScript
  var strCaption = "MyCaption";

Application.ActiveWindow.Caption = strCaption;

See Also