getLocation
Gets the location of the active tab.
Syntax
getLocation = function();
Parameters
Returned value
- functions: current location
Examples
//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))