Return to Snippet

Revision: 28327
at August 6, 2010 04:34 by brandonjp


Updated Code
// variable for the current filename in the URL 
var filename = location.pathname.substr(location.pathname.lastIndexOf("/") + 1, location.pathname.length);

Revision: 28326
at July 7, 2010 03:51 by brandonjp


Initial Code
// variable for the current filename in the URL 
var filename = location.pathname.substr(location.pathname.lastIndexOf("/") + 1, location.pathname.length);

Initial URL

                                

Initial Description

                                

Initial Title
js variable for current url\'s filename

Initial Tags
url, javascript, js, file, textmate, query

Initial Language
JavaScript