get current filename from url

/ Published in: JavaScript
Save to your folder(s)

Copy this code and paste it in your HTML
  1. var url = "";
  3. // You can use this script when URL includes a filename last,
  4. // for example CVS Viewer's URL
  5. url.split("/").pop();


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.