var arrPaths = location.pathname.split('/'); //arrPaths will be an array like:[ "", "api", "1", "BTCUSD","ticker"] //and if you want BTCUSD value then you can use. var buyValue = arrPaths[3];
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)