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< USVString > | ancestorOrigins |
Location for document.
void Location::assign | ( | USVString | url | ) |
Navigates to the given URL.
void Location::reload | ( | optional Bool | forceReload | ) |
Reloads the current page.
void Location::replace | ( | USVString | url | ) |
Removes the current page from the session history and navigates to the given URL.
readonly attribute sequence<USVString> Location::ancestorOrigins |
attribute USVString Location::hash |
URL's fragment (includes leading "#" if non-empty)
attribute USVString Location::host |
URL's host and port (if different from the default port for the scheme)
attribute USVString Location::hostname |
URL's host.
attribute USVString Location::href |
Whole url of the document.
readonly attribute USVString Location::origin |
URL's origin.
attribute USVString Location::pathname |
URL's path.
attribute USVString Location::port |
URL's port.
attribute USVString Location::protocol |
URL's protocol.
attribute USVString Location::search |
URL's query (includes leading "?" if non-empty)