Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get current file name javascript

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