location property
Location
get
location
The Window.location
read-only property returns a Location object
with information about the current location of the document.
Though Window.location
is a read-only Location
object, you can also
assign a string to it.
This means that you can work with location
as if it were a string in
most cases:
location = 'http://www.example.com'
is a synonym of location.href = 'http://www.example.com'
.
See Location for all available properties.
Implementation
external Location get location;