Thursday, September 10, 2009

Hot to get page name in crm,js

Hi,
Here is an example how to get page name.

function GetPageName() {
var sPath = window.location.pathname;
var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
return sPage;
}

Rami Heleg,