1.26.2.1
Gameface
Location Interface Reference

Location for document. More...

Public Member Functions

void assign (USVString url)
 Navigates to the given URL. More...
 
void replace (USVString url)
 Removes the current page from the session history and navigates to the given URL. More...
 
void reload (optional Bool forceReload)
 Reloads the current page. More...
 

Public Attributes

attribute USVString href
 Whole url of the document. More...
 
readonly attribute USVString origin
 URL's origin. More...
 
attribute USVString protocol
 URL's protocol. More...
 
attribute USVString host
 URL's host and port (if different from the default port for the scheme) More...
 
attribute USVString hostname
 URL's host. More...
 
attribute USVString port
 URL's port. More...
 
attribute USVString pathname
 URL's path. More...
 
attribute USVString search
 URL's query (includes leading "?" if non-empty) More...
 
attribute USVString hash
 URL's fragment (includes leading "#" if non-empty) More...
 
readonly attribute sequence< USVStringancestorOrigins
 

Detailed Description

Location for document.

Member Function Documentation

◆ assign()

void Location::assign ( USVString  url)

Navigates to the given URL.

◆ reload()

void Location::reload ( optional Bool  forceReload)

Reloads the current page.

◆ replace()

void Location::replace ( USVString  url)

Removes the current page from the session history and navigates to the given URL.

Member Data Documentation

◆ ancestorOrigins

readonly attribute sequence<USVString> Location::ancestorOrigins

◆ hash

attribute USVString Location::hash

URL's fragment (includes leading "#" if non-empty)

◆ host

attribute USVString Location::host

URL's host and port (if different from the default port for the scheme)

◆ hostname

attribute USVString Location::hostname

URL's host.

◆ href

attribute USVString Location::href

Whole url of the document.

◆ origin

readonly attribute USVString Location::origin

URL's origin.

◆ pathname

attribute USVString Location::pathname

URL's path.

◆ port

attribute USVString Location::port

URL's port.

◆ protocol

attribute USVString Location::protocol

URL's protocol.

◆ search

attribute USVString Location::search

URL's query (includes leading "?" if non-empty)