GetDisplayName Method
The GetDisplayName method returns the display name of a control. It returns this name in a string. It uses the following syntax:
GetDisplayName()
It includes no arguments.
For example:
if (control.GetDisplayName () === "Account Name"){
// This is the account control.
alert ("You are leaving Account. This will trigger an immediate post change.");
}