Expand description
Browser DOM helpers for accessing the window, document and elements.
Structs§
- Document
- The
Documentclass. - Element
- The
Elementclass. - JsValue
- Representation of an object owned by JS.
- Window
- The
Windowclass.
Functions§
- document
- Returns the global
documentnode, panicking if no browser context exists. - get_
element_ by_ id - Returns the DOM element with the given
id, orNoneif not found. - window
- Returns the global
windowobject, panicking if no browser context exists.
Type Aliases§
- Element
Result - Result type for DOM operations, carrying a
JsValueerror on failure.