how to get file name from the url in javascript code example
Example: get filename from url js
var filename = location.pathname.substr(location.pathname.lastIndexOf("/")+1);
var filename = location.pathname.substr(location.pathname.lastIndexOf("/")+1);