Hi @developer sp1 ,
It extracts one named parameter from the QueryString (URL), for example:
http://domainname.com/page.aspx?parameter1=xxx¶meter2=yyy
var value=getQueryStringParameter('parameter1');
In SharePoint environment, you can use JsRequest.js to achieve the same function like this:
JSRequest.EnsureSetup();
var value=JSRequest.QueryString['parameter1'];
Reference:
Some Useful JavaScript Methods, Variable And Objects In Sharepoint 2013
Thanks
Best Regards
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.