Struct stdweb::web::Window [] [src]

pub struct Window(_);

The Window object represents a window containing a DOM document.

(JavaScript docs)

Methods

impl Window
[src]

The Window.alert() method displays an alert dialog with the optional specified content and an OK button.

(JavaScript docs)

The local_storage property allows you to access a local Storage object.

It is similar to the Window::session_storage. The only difference is that, while data stored in local_storage has no expiration time, data stored in session_storage gets cleared when the browsing session ends - that is, when the browser is closed.

(JavaScript docs)

The session_storage property allows you to access a session Storage object for the current origin.

It is similar to the Window::local_storage, The only difference is that, while data stored in local_storage has no expiration time, data stored in session_storage gets cleared when the browsing session ends.

A page session lasts for as long as the browser is open and survives over page reloads and restores. Opening a page in a new tab or window will cause a new session to be initiated, which differs from how session cookies work.

(JavaScript docs)

Returns a Location object which contains information about the URL of the document and provides methods for changing that URL and loading another URL.

(JavaScript docs)

Trait Implementations

impl IEventTarget for Window
[src]

Adds given event handler to the list the list of event listeners for the specified EventTarget on which it's called. Read more

impl IWindowOrWorker for Window
[src]

Sets a timer which executes a function once after the timer expires. Read more

impl Debug for Window
[src]

Formats the value using the given formatter.

impl Clone for Window
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl AsRef<Reference> for Window
[src]

Performs the conversion.

impl<T: TryInto<Reference>> TryFrom<T> for Window where
    T::Error: Into<Box<Error>>, 
[src]

The type returned in the event of a conversion error.

Performs the conversion.