Obtenha o nome do arquivo atual JavaScript
var path = window. location. pathname;
var page = path. split("/"). pop();
console. log( page );
Red Team
var path = window. location. pathname;
var page = path. split("/"). pop();
console. log( page );