Class Body
The body element represents the content of an HTML document. It contains all the visible content of the page, including text, images, links, forms, and other elements. The body element is typically the direct child of the html element and contains all the main content of the document.
Examples:
The following convenience methods are provided for constructing instances of this bean:
See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiononafterprint(String value) onafterprint attribute.onbeforeunload(String value) onbeforeunload attribute.onmessage attribute.ononline attribute.onpageshow(String value) onpageshow attribute.onstorage attribute.Methods inherited from class org.apache.juneau.bean.html5.HtmlElementMixed
child, children, getChild, getChild, getChild, getChildren, setChildrenMethods inherited from class org.apache.juneau.bean.html5.HtmlElement
accesskey, attr, attrUri, class_, contenteditable, deminimize, dir, getAttr, getAttr, getAttrs, hidden, id, lang, onabort, onblur, oncancel, oncanplay, oncanplaythrough, onchange, onclick, oncuechange, ondblclick, ondurationchange, onemptied, onended, onerror, onfocus, oninput, oninvalid, onkeydown, onkeypress, onkeyup, onload, onloadeddata, onloadedmetadata, onloadstart, onmousedown, onmouseenter, onmouseleave, onmousemove, onmouseout, onmouseover, onmouseup, onmousewheel, onpause, onplay, onplaying, onprogress, onratechange, onreset, onresize, onscroll, onseeked, onseeking, onselect, onshow, onstalled, onsubmit, onsuspend, ontimeupdate, ontoggle, onvolumechange, onwaiting, self, setAttrs, spellcheck, style, tabindex, title, toString, translate
-
Constructor Details
-
Method Details
-
onafterprint
onafterprint attribute.Event handler for when the document has finished printing.
- Parameters:
value- JavaScript code to execute when the afterprint event occurs. Can benull to unset the attribute.- Returns:
- This object.
-
onbeforeunload
onbeforeunload attribute.Event handler for when the document is about to be unloaded (page refresh, navigation, etc.).
- Parameters:
value- JavaScript code to execute when the beforeunload event occurs. Can benull to unset the attribute.- Returns:
- This object.
-
onmessage
onmessage attribute.Event handler for when a message is received from another window or worker.
- Parameters:
value- JavaScript code to execute when the message event occurs. Can benull to unset the attribute.- Returns:
- This object.
-
ononline
ononline attribute.Event handler for when the browser has gone online.
- Parameters:
value- JavaScript code to execute when the online event occurs. Can benull to unset the attribute.- Returns:
- This object.
-
onpageshow
onpageshow attribute.Event handler for when the page is displayed (including when returning from back/forward cache).
- Parameters:
value- JavaScript code to execute when the pageshow event occurs. Can benull to unset the attribute.- Returns:
- This object.
-
onstorage
onstorage attribute.Event handler for when the storage area (localStorage or sessionStorage) is modified.
- Parameters:
value- JavaScript code to execute when the storage event occurs. Can benull to unset the attribute.- Returns:
- This object.
-