/ Published in: JavaScript
![](/img/icon_sav.png?v3)
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);
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)