Posted By

shinya on 12/30/10


Tagged

url javascript filename


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

aaearhart


get current filename from url


 / Published in: JavaScript
 

URL: http://peperon299.blogspot.com/

  1. var url = "http://www.google.co.jp/index.html";
  2.  
  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  

You need to login to post a comment.