Guest User

Untitled

a guest
Dec 15th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. var url = window.location.pathname;
  2. var filename = url.substring(url.lastIndexOf('/')+1);
  3. alert(filename);
Add Comment
Please, Sign In to add comment