Tommy's blog

  • Home

  • Tags

  • Archives

  • Application

  • About

Extract QueryString in a webpage

Posted on 2019-01-29

Get the querystring of a webpage by JavaScript in DevTool console

1
2
3
4
5
fullQueryString = document.location.search.substr(1).split('&');
fullQueryString.map(function(item) {
i = item.split("=");
querystring[i[0].toString()] = i[1].toString();
})
# JavaScript
Fun JavaScript - Numbering
Downloading files with consecutive file name in URL
Tommy Tang

Tommy Tang

I'm Tommy Tang. I like to solve puzzles. Fascinated in programming and problem-solving.

20 posts
29 tags
GitHub
© 2019 Tommy Tang
Powered by Hexo v3.8.0
|
Theme – NexT.Mist v6.7.0