Created
January 8, 2015 07:17
-
-
Save fsubal/3fd7cdb41a2e7e144be1 to your computer and use it in GitHub Desktop.
Get the Name of the Page File
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var url = location.href.split("/"); | |
var last = (url[url.length-1])? url[url.length-1] : "index"; | |
var fileName = last.split(".html")[0]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment