HTML5 對各個標簽的定義與規定:body的介紹_HTML5教程
推薦:關于HTML5的安全問題開發人員需要牢記的HTML5中的安全問題也要注意的
body元素就是就是html文檔的主內容標簽。可設置屬性
onafterprint 在打印文檔之后運行腳本
onbeforeprint 在文檔打印之前運行腳本
onbeforeonload 在文檔加載之前運行腳本
onblur 當窗口失去焦點時運行腳本
onerror 當錯誤發生時運行腳本
onfocus 當窗口獲得焦點時運行腳本
onhaschange 當文檔改變時運行腳本
onload 當文檔加載時運行腳本
onmessage 當觸發消息時運行腳本
onoffline 當文檔離線時運行腳本
ononline 當文檔上線時運行腳本
onpagehide 當窗口隱藏時運行腳本
onpageshow 當窗口可見時運行腳本
onpopstate 當窗口歷史記錄改變時運行腳本
onredo 當文檔執行再執行操作(redo)時運行腳本
onresize 當調整窗口大小時運行腳本
onstorage 當文檔加載加載時運行腳本
onundo 當文檔執行撤銷操作時運行腳本
onunload 當用戶離開文檔時運行腳本
DOM 接口
代碼: 全選 運行
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;
};
分享:關于HTML5的22個初級技巧(圖文教程)HTML5來了.讓我們看一下有什么技巧
相關HTML5教程:
- 只要五步 就可以用HTML5/CSS3快速制作便簽貼特效(圖)
- 網易微博Web App用HTML5開發的過程介紹
- 關于HTML5的安全問題開發人員需要牢記的
- 關于HTML5的22個初級技巧(圖文教程)
- 開發人員所需要知道的HTML5性能分析面面觀
- HTML5 Web Database 數據庫的SQL語句的使用方法
- HTML5實踐-圖片設置成灰度圖
- HTML5安全介紹之內容安全策略(CSP)簡介
- HTML5 Web存儲方式的localStorage和sessionStorage進行數據本地存儲案例應用
- Bootstrap 學習分享
- input元素的url類型和email類型簡介
- HTML5自定義data-* data(obj)屬性和jquery的data()方法的使用
- 相關鏈接:
- 教程說明:
HTML5教程-HTML5 對各個標簽的定義與規定:body的介紹
。