Advertisement
prabapro

CJS - Query Parameter or Page Path

Jul 8th, 2021
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function() {
  2.   var params = new URLSearchParams(window.location.search);
  3.   return lang = params.get('LN') || window.location.href.split("/")[3];
  4. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement