showing results for - "get 24 get in javascript"
Ryle
31 Feb 2017
1var parts = window.location.search.substr(1).split("&");
2var $_GET = {};
3for (var i = 0; i < parts.length; i++) {
4    var temp = parts[i].split("=");
5    $_GET[decodeURIComponent(temp[0])] = decodeURIComponent(temp[1]);
6}
7
8console.log($_GET['query'])