Trait stdweb::web::IHtmlElement
[−]
[src]
pub trait IHtmlElement: IElement { fn focus(&self) { ... } fn blur(&self) { ... } fn dataset(&self) -> StringMap { ... } }
The IHtmlElement
interface represents any HTML element.
Provided Methods
fn focus(&self)
Sets focus on the specified element, if it can be focused.
fn blur(&self)
Removes keyboard focus from the current element.
fn dataset(&self) -> StringMap
Allows access, both in reading and writing, to all of the custom data attributes (data-*) set on the element, either in HTML or in the DOM.
Implementors
impl IHtmlElement for HtmlElement
impl IHtmlElement for ImageElement
impl IHtmlElement for InputElement