0

I have the following url:

http://myweb/sites/stonehr/SitePages/VacancyTracking.aspx?PrID=23?Status=34

And I have to get the value of PrID= and Status= with JavaScript, to be able to:

alert(PrID); // output should be 23
alert(Status); // output should be 34

How can I achieve this?

Robert Lindgren
  • 24,520
  • 12
  • 53
  • 79
Nderon Hyseni
  • 1,793
  • 6
  • 35
  • 63
  • Pretty common question. Read here http://sharepoint.stackexchange.com/questions/100354/get-the-id-value-from-the-page-url – Ransher Singh Oct 19 '16 at 14:13
  • And all that SharePoint provides concerning URL parameters: http://sharepoint.stackexchange.com/questions/159289/what-does-this-code-getquerystringparameter-do/159290#159290 – Danny '365CSI' Engelman Oct 19 '16 at 14:15

0 Answers0