Type.getName Method
Returns the name of the type of the instance.
var typeNameVar = typeInstanceVar.getName();
The following example shows how to retrieve the registered components in an application and how to retrieve their ID and type information.
function listComponents() {
var c = Sys.Application.getComponents();
var s = "";
for (var i=0; i<c.length; i++) {
var id = c[i].get_id();
var type = Object.getType(c[i]).getName();
s += 'Item ' + i + ': id=' + id + ', type=' + type + '.<br />';
}
div1.innerHTML = s;
}
Show: