JavaScript Get FileName da URL
var filename = url.split('/').pop();
Green Swan
var filename = url.split('/').pop();
var filename = location.pathname.substr(location.pathname.lastIndexOf("/")+1);