org.scalajs.dom.raw

Location

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
@RawJSType() @native()
Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Location
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def assign(url: String): Unit

    The Location.

    The Location.assign()method loading the object at the URL providing in parameter.

    MDN

  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. def hasOwnProperty(v: String): Boolean

    Definition Classes
    Object
  14. var 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

  15. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  16. var 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

  17. var hostname: String

    Is a DOMString containing the domain of the URL.

    Is a DOMString containing the domain of the URL.

    MDN

  18. var href: String

    Is a DOMString containing the whole URL.

    Is a DOMString containing the whole URL.

    MDN

  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. def isPrototypeOf(v: Object): Boolean

    Definition Classes
    Object
  21. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  24. 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

  25. var 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

  26. var port: String

    Is a DOMString containing the port number of the URL.

    Is a DOMString containing the port number of the URL.

    MDN

  27. def propertyIsEnumerable(v: String): Boolean

    Definition Classes
    Object
  28. var 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

  29. def reload(flag: Boolean = js.native): Unit

    The Location.

    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

  30. def replace(url: String): Unit

    The Location.

    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

  31. 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.

    MDN

  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  33. def toLocaleString(): String

    Definition Classes
    Object
  34. def toString(): String

    Definition Classes
    AnyRef → Any
  35. def valueOf(): Any

    Definition Classes
    Object
  36. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped