All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.web.location.Location.kt Maven / Gradle / Ivy

// Automatically generated - do not modify!

package web.location

import dom.DOMStringList
import web.url.URL

sealed external class Location {
    /** Returns a DOMStringList object listing the origins of the ancestor browsing contexts, from the parent browsing context to the top-level browsing context. */
    val ancestorOrigins: DOMStringList

    /**
     * Returns the Location object's URL's fragment (includes leading "#" if non-empty).
     *
     * Can be set, to navigate to the same URL with a changed fragment (ignores leading "#").
     */
    var hash: String

    /**
     * Returns the Location object's URL's host and port (if different from the default port for the scheme).
     *
     * Can be set, to navigate to the same URL with a changed host and port.
     */
    var host: String

    /**
     * Returns the Location object's URL's host.
     *
     * Can be set, to navigate to the same URL with a changed host.
     */
    var hostname: String

    /**
     * Returns the Location object's URL.
     *
     * Can be set, to navigate to the given URL.
     */
    var href: String

    /** Returns the Location object's URL's origin. */
    val origin: String

    /**
     * Returns the Location object's URL's path.
     *
     * Can be set, to navigate to the same URL with a changed path.
     */
    var pathname: String

    /**
     * Returns the Location object's URL's port.
     *
     * Can be set, to navigate to the same URL with a changed port.
     */
    var port: String

    /**
     * Returns the Location object's URL's scheme.
     *
     * Can be set, to navigate to the same URL with a changed scheme.
     */
    var protocol: String

    /**
     * Returns the Location object's URL's query (includes leading "?" if non-empty).
     *
     * Can be set, to navigate to the same URL with a changed query (ignores leading "?").
     */
    var search: String

    /** Navigates to the given URL. */
    fun assign(url: String)
    fun assign(url: URL)

    /** Reloads the current page. */
    fun reload()

    /** Removes the current page from the session history and navigates to the given URL. */
    fun replace(url: String)
    fun replace(url: URL)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy