Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

get $_get in javascript

var parts = window.location.search.substr(1).split("&");
var $_GET = {};
for (var i = 0; i < parts.length; i++) {
    var temp = parts[i].split("=");
    $_GET[decodeURIComponent(temp[0])] = decodeURIComponent(temp[1]);
}

console.log($_GET['query'])
Comment

PREVIOUS NEXT
Code Example
Javascript :: generate random id javascript 
Javascript :: prependchild in javascript 
Javascript :: contains whitespace js function 
Javascript :: how to change attribute link in javascript 
Javascript :: package.json set environment variables 
Javascript :: using iframe in chrome console 
Javascript :: gsap js link 
Javascript :: jquery thousand separator 
Javascript :: select checked checkboxes javascript 
Javascript :: axios x-api-key for all 
Javascript :: find the index of an object in an array 
Javascript :: palindrome rearranging javascript 
Javascript :: javascript sort array by index 
Javascript :: eslint-disable-next-line 
Javascript :: disable global require eslint 
Javascript :: react native text capitalize 
Javascript :: javascript string search second occurrence 
Javascript :: how to stop browser back js 
Javascript :: how to append the dropdown values by jquery each function 
Javascript :: mongoose connect to mongodb 
Javascript :: you should not use switch outside a router react 
Javascript :: typeorm where in 
Javascript :: regex link validation 
Javascript :: new line in p tag react 
Javascript :: chrome add a javascript bookmark 
Javascript :: js setinterval 
Javascript :: check if all elements in array are true javascript 
Javascript :: javascript run command 
Javascript :: read json file into object javascript 
Javascript :: javascript generate random numbers 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =