Here is the method to access query string keys and values.
Say for this URL http://www.testsite.co.in/?Mode=ADD
the following method,
var queryString = window.location.search.substring(1);
Now the variable 'queryString' will have "Mode=ADD".