Skip to content

Instantly share code, notes, and snippets.

@smitroshin
Created May 23, 2019 13:22
Show Gist options
  • Save smitroshin/ea2ff6b7fce3e3702c15f46ea27e435c to your computer and use it in GitHub Desktop.
Save smitroshin/ea2ff6b7fce3e3702c15f46ea27e435c to your computer and use it in GitHub Desktop.
const urlString = window.location.href;
const url = new URL(urlString);
const urlParamLang = url.searchParams.get('param');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment