Skip to content

Instantly share code, notes, and snippets.

@interfeis
Created July 2, 2012 16:34
Show Gist options
  • Save interfeis/3034130 to your computer and use it in GitHub Desktop.
Save interfeis/3034130 to your computer and use it in GitHub Desktop.
Get page filename
location.href.split('/').pop(); //this returns for example: index.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment