Location class

The interface represents the location (URL) of the object it is linked to. Changes done on it are reflected on the object it relates to. Both the Document and Window interface have such a linked , accessible via Document.location and Window.location respectively.

Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

Location()
factory

Properties

ancestorOrigins DOMStringList

Available on Location, provided by the PropsLocation extension

no setter
hashCode int
The hash code for this object.
no setterinherited
host String

Available on Location, provided by the PropsLocation extension

getter/setter pair
hostname String

Available on Location, provided by the PropsLocation extension

getter/setter pair
href String

Available on Location, provided by the PropsLocation extension

getter/setter pair
mHash String

Available on Location, provided by the PropsLocation extension

getter/setter pair
origin String

Available on Location, provided by the PropsLocation extension

no setter
pathname String

Available on Location, provided by the PropsLocation extension

getter/setter pair
port String

Available on Location, provided by the PropsLocation extension

getter/setter pair
protocol String

Available on Location, provided by the PropsLocation extension

getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Available on Location, provided by the PropsLocation extension

getter/setter pair

Methods

assign(String url) → void

Available on Location, provided by the PropsLocation extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reload() → void

Available on Location, provided by the PropsLocation extension

replace(String url) → void

Available on Location, provided by the PropsLocation extension

toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited