/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function getFileNameFromPath(path) { return path.substring(path.lastIndexOf('/') + 1); }
function getFileNameFromPath(path) { return path.substring(path.lastIndexOf('/') + 1); }