Last active
June 3, 2018 04:07
-
-
Save malikkurosaki/9df23d060daeb1a426d67949aab06f80 to your computer and use it in GitHub Desktop.
to get parameter on url like if sset get on php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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