CRM 2011 JS: Get the current entity name using javascript in CRM 2011

// This is how to Get the current entity name using javascript in CRM 2011

 

// Get current entity name

var entity = Xrm.Page.data.entity.getEntityName();