Verifique o nome do documento em JavaScript
var path = window.location.pathname;
var page = path.split("/").pop();
console.log( page );
Jeff Spicoli
var path = window.location.pathname;
var page = path.split("/").pop();
console.log( page );
var path = window.location.pathname;
var page = path.split("/").pop();
console.log(page);