Grab filename from window location
Here is a snippet I use to grab the filename from the full window location of page.
var filename = location.pathname.substr(location.pathname.lastIndexOf("/")+1,location.pathname.length);
This entry was posted
on Monday, February 11th, 2008 at 12:55 am and is filed under All, Javascript.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.