Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get filename from url js

var filename = location.pathname.substr(location.pathname.lastIndexOf("/")+1);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #filename #url #js
ADD COMMENT
Topic
Name
5+1 =