0

I have a url that looks like this https://adv-web-final-robneal28.c9users.io/index.html?code=7eba04a6a83f4d5aac30afec6a44b61

its being generated with as part of the instagram implicit oauth. I need to be able grab the code part of the url (7eba04a6a83f4d5aac30afec6a44b61) and store in a variable to use else where in my code. I have to do this in javascript.

robneal
  • 40
  • 7
  • this will help you http://stackoverflow.com/questions/4758103/last-segment-of-url – Devanathan.S Dec 21 '16 at 08:03
  • I had created a utility function that might help. [QS to Object](https://jsfiddle.net/RajeshDixit/neagdcyt/). This will fetch all query parameters and return an object. Also you should read about [window.location](https://developer.mozilla.org/en-US/docs/Web/API/Window/location). – Rajesh Dec 21 '16 at 08:06

0 Answers0