trait Location extends Object
The Location interface represents the location 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 Location, accessible via Document.location and Window.location respectively.
MDN
- Annotations
- @JSType() @native()
- Alphabetic
- By Inheritance
- Location
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
assign(url: String): Unit
The Location.assign()method loading the object at the URL providing in parameter.
The Location.assign()method loading the object at the URL providing in parameter.
MDN
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
val
hash: String
Is a DOMString containing a '#' followed by the fragment identifier of the URL.
Is a DOMString containing a '#' followed by the fragment identifier of the URL.
MDN
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
val
host: String
Is a DOMString containing the host, that is the hostname, a ':', and the port of the URL.
Is a DOMString containing the host, that is the hostname, a ':', and the port of the URL.
MDN
-
val
hostname: String
Is a DOMString containing the domain of the URL.
Is a DOMString containing the domain of the URL.
MDN
-
val
href: String
Is a DOMString containing the whole URL.
Is a DOMString containing the whole URL.
MDN
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
origin: UndefOr[String]
The origin read-only property is a String containing the Unicode serialization of the origin of the represented URL, that is, for http and https, the scheme followed by '://', followed by the domain, followed by ':', followed by the port (the default port, 80 and 443 respectively, if explicitly specified).
The origin read-only property is a String containing the Unicode serialization of the origin of the represented URL, that is, for http and https, the scheme followed by '://', followed by the domain, followed by ':', followed by the port (the default port, 80 and 443 respectively, if explicitly specified). For URL using file: scheme, the value is browser dependant.
This property also does not exist consistently on IE, even as new as IE11, hence it must be UndefOr.
MDN
-
val
pathname: String
Is a DOMString containing an initial '/' followed by the path of the URL.
Is a DOMString containing an initial '/' followed by the path of the URL.
MDN
-
val
port: String
Is a DOMString containing the port number of the URL.
Is a DOMString containing the port number of the URL.
MDN
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
val
protocol: String
Is a DOMString containing the protocol scheme of the URL, including the final ':'.
Is a DOMString containing the protocol scheme of the URL, including the final ':'.
MDN
-
def
reload(flag: Boolean = js.native): Unit
The Location.reload()method Reloads the resource from the current URL.
The Location.reload()method Reloads the resource from the current URL. Its optional unique parameter is a Boolean, which, when it is true, causes the page to always be reloaded from the server. If it is false or not specified, the browser may reload the page from its cache.
MDN
-
def
replace(url: String): Unit
The Location.replace()method replaces the current resource with the one at the provided URL.
The Location.replace()method replaces the current resource with the one at the provided URL. The difference from the assign() method is that after using replace() the current page will not be saved in session History, meaning the user won't be able to use the back button to navigate to it.
MDN
-
val
search: String
Is a DOMString containing a '?' followed by the parameters of the URL.
Is a DOMString containing a '?' followed by the parameters of the URL.
MDN
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
valueOf(): Any
- Definition Classes
- Object
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()