Skip to content

Instantly share code, notes, and snippets.

@sharkyak
Created July 17, 2017 12:57
Show Gist options
  • Save sharkyak/1b674cd4fc92e43909dc51ca2d12dadf to your computer and use it in GitHub Desktop.
Save sharkyak/1b674cd4fc92e43909dc51ca2d12dadf to your computer and use it in GitHub Desktop.
js get url params
const url = new URL(location.href);
const id = url.searchParams.get('company');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment