i have an URL like the followin,
http://test.com/testing/test/12345
12345 is the id. I want to take this using query string. How to take this value in javascript?
i have an URL like the followin,
12345 is the id. I want to take this using query string. How to take this value in javascript? |
|||||
|
try like this
or just
|
|||
|
Use this :
Running it on this page yields : |
|||||||||||||
|
That's part of the path, not the query string... but you can access the page's URL using The path is available at And then you can get the last item of the array: |
|||
|