type

種類プロパティ(R)
書式 オブジェクト.type
解説
オブジェクトタイプを返します。ボタンであればbuttonの文字を返します。
サンプルコード
winObj = new Window("palette","Sample",[100,50,300,200]);
btnObj = winObj.add("button",[10,70,120,90],"Check!");
btnObj.onClick = function(){
alert(btnObj.type);
}
winObj.show();
実際のスクリプトをダウンロード