nType = oRoot.ClientType
By this property it is possible to conditionally run different algorithms in the application and in the Web browser. It is relevant only if the panel is used locally in the application and also for Web as Web panels (i.e. if the Web sharing is enabled in the Web server page).
if (pMe.Root.ClientType == 1)
//algorithm for local panel
else if (pMe.Root.ClientType == 2)
//algorithm for Web