The body element is the main content tag of the html document. Configurable attributes ......,.
HTML5 defines and defines each label: body
The body element is the main content tag of the html document.
Configurable attributes
Onafterprint run the script after printing the document
Onbeforeprint run the script before the document is printed
Onbeforeonload run the script before the file is loaded
Onblur runs scripts when the window loses focus
Onerror: run the script when an error occurs.
Onfocus run the script when the window gets the focus
Onhaschange run the script when the document changes
Onload: run the script when the document is loaded
Onmessage
Onoffline run scripts when documents are offline
Ononline
Onpagehide runs scripts when the window is hidden
Onpageshow run the script when the window is visible
Onpopstate: run the script when the window history changes
Onredo: run the script when the document executes the redo operation.
Onresize run the script when the window size is adjusted
Onstorage
Onundo: run the script when the document executes the Undo operation.
Onunload run the script when the user leaves the document
DOM interface
Code: select all to run
interface HTMLBodyElement : HTMLElement { attribute Function onafterprint; attribute Function onbeforeprint; attribute Function onbeforeunload; attribute Function onblur; attribute Function onerror; attribute Function onfocus; attribute Function onhashchange; attribute Function onload; attribute Function onmessage; attribute Function onoffline; attribute Function ononline; attribute Function onpopstate; attribute Function onpagehide; attribute Function onpageshow; attribute Function onredo; attribute Function onresize; attribute Function onscroll; attribute Function onstorage; attribute Function onundo; attribute Function onunload;};
The above is the HTML5 definition and provision for each label: body content. For more information, see PHP Chinese Network (www.php1.cn )!