Gets the location of the active tab.
getLocation = function();
//Loading page "google.ru/?q=request". Expect the loading is complete loadURI('google.ru/?q=request'); //Get location var loc = getLocation(); //Deduce the fields of the location to the log log(JSON.stringify(loc))