Skip to content

Instantly share code, notes, and snippets.

@malikkurosaki
Last active June 3, 2018 04:07
Show Gist options
  • Save malikkurosaki/9df23d060daeb1a426d67949aab06f80 to your computer and use it in GitHub Desktop.
Save malikkurosaki/9df23d060daeb1a426d67949aab06f80 to your computer and use it in GitHub Desktop.
to get parameter on url like if sset get on php
var gt = document.location.href;
var ga = new URL(gt);
var gg = ga.searchParams.get("pn");
if(gg != null){
console.log("ya gt deh")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment