JavaScript Uzyskaj nazwę pliku z URL
var filename = url.split('/').pop();
Green Swan
var filename = url.split('/').pop();
var filename = location.pathname.substr(location.pathname.lastIndexOf("/")+1);