class Location extends Object
Window Location object
- Annotations
- @RawJSType() @native()
- See also
https://developer.mozilla.org/en-US/docs/Web/API/Location
- Alphabetic
- By Inheritance
- Location
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Location()
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
Loads the resource at the URL provided in parameter.
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
var
hash: String
Is a DOMString containing a '#' followed by the fragment identifier of the URL.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
var
host: String
Is a DOMString containing the host, that is the hostname, a ':', and the port of the URL.
-
var
hostname: String
Is a DOMString containing the domain of the URL.
-
var
href: String
Is a DOMString containing the entire URL.
Is a DOMString containing the entire URL. If changed, the associated document navigates to the new page. It can be set from a different origin than the associated document.
-
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
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
origin: String
Read-only: Returns a DOMString containing the canonical form of the origin of the specific location.
-
var
password: String
Is a DOMString containing the password specified before the domain name.
-
var
pathname: String
Is a DOMString containing an initial '/' followed by the path of the URL.
-
var
port: String
Is a DOMString containing the port number of the URL.
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
var
protocol: String
Is a DOMString containing the protocol scheme of the URL, including the final ':'.
-
def
reload(forcedReload: Boolean = js.native): Unit
Reloads the resource from the current URL.
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.
- forcedReload
Optional: Is a Boolean flag, 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.
-
def
replace(url: String): Unit
Replaces the current resource with the one at the provided URL.
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.
-
var
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. Also known as "querystring".
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
var
username: String
Is a DOMString containing the username specified before the domain name.
-
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( ... )