Skip to content

Instantly share code, notes, and snippets.

@varemenos
Created March 19, 2012 05:11
Show Gist options
  • Save varemenos/2096367 to your computer and use it in GitHub Desktop.
Save varemenos/2096367 to your computer and use it in GitHub Desktop.
jQuery - Check For Current Url
if(window.location.pathname === 'index.php'){
// do something
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment