/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// variable for the current filename in the URL var filename = location.pathname.substr(location.pathname.lastIndexOf("/") + 1, location.pathname.length);