getLocation

Gets the location of the active tab.

Syntax

getLocation = function();

Parameters

Returned value

  • functions: current location

Examples

  1. //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))