Periksa nama dokumen di 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);