Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get current html file name javascript

var path = window.location.pathname;
var page = path.split("/").pop();
console.log(page);
Source by www.codegrepper.com #
 
PREVIOUS NEXT
Tagged: #current #html #file #javascript
ADD COMMENT
Topic
Name
9+1 =