How to use javascript to get the following url - the value of id?
URL: http://www.url/id/2721/John
I would get the following values:
2721 and John
How to use javascript to get the following url - the value of id?
URL: http://www.url/id/2721/John
I would get the following values:
2721 and John
Use .split("/")
to separate the URL into pieces, then read the values.