HTML5 對各個標(biāo)簽的定義與規(guī)定:body的介紹_HTML5教程
推薦:關(guān)于HTML5的安全問題開發(fā)人員需要牢記的HTML5中的安全問題也要注意的
body元素就是就是html文檔的主內(nèi)容標(biāo)簽。可設(shè)置屬性
onafterprint 在打印文檔之后運(yùn)行腳本
onbeforeprint 在文檔打印之前運(yùn)行腳本
onbeforeonload 在文檔加載之前運(yùn)行腳本
onblur 當(dāng)窗口失去焦點(diǎn)時運(yùn)行腳本
onerror 當(dāng)錯誤發(fā)生時運(yùn)行腳本
onfocus 當(dāng)窗口獲得焦點(diǎn)時運(yùn)行腳本
onhaschange 當(dāng)文檔改變時運(yùn)行腳本
onload 當(dāng)文檔加載時運(yùn)行腳本
onmessage 當(dāng)觸發(fā)消息時運(yùn)行腳本
onoffline 當(dāng)文檔離線時運(yùn)行腳本
ononline 當(dāng)文檔上線時運(yùn)行腳本
onpagehide 當(dāng)窗口隱藏時運(yùn)行腳本
onpageshow 當(dāng)窗口可見時運(yùn)行腳本
onpopstate 當(dāng)窗口歷史記錄改變時運(yùn)行腳本
onredo 當(dāng)文檔執(zhí)行再執(zhí)行操作(redo)時運(yùn)行腳本
onresize 當(dāng)調(diào)整窗口大小時運(yùn)行腳本
onstorage 當(dāng)文檔加載加載時運(yùn)行腳本
onundo 當(dāng)文檔執(zhí)行撤銷操作時運(yùn)行腳本
onunload 當(dāng)用戶離開文檔時運(yùn)行腳本
DOM 接口
代碼: 全選 運(yùn)行
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;
};
分享:關(guān)于HTML5的22個初級技巧(圖文教程)HTML5來了.讓我們看一下有什么技巧
相關(guān)HTML5教程:
- 只要五步 就可以用HTML5/CSS3快速制作便簽貼特效(圖)
- 網(wǎng)易微博Web App用HTML5開發(fā)的過程介紹
- 關(guān)于HTML5的安全問題開發(fā)人員需要牢記的
- 關(guān)于HTML5的22個初級技巧(圖文教程)
- 開發(fā)人員所需要知道的HTML5性能分析面面觀
- HTML5 Web Database 數(shù)據(jù)庫的SQL語句的使用方法
- HTML5實(shí)踐-圖片設(shè)置成灰度圖
- HTML5安全介紹之內(nèi)容安全策略(CSP)簡介
- HTML5 Web存儲方式的localStorage和sessionStorage進(jìn)行數(shù)據(jù)本地存儲案例應(yīng)用
- Bootstrap 學(xué)習(xí)分享
- input元素的url類型和email類型簡介
- HTML5自定義data-* data(obj)屬性和jquery的data()方法的使用
HTML5教程Rss訂閱Div+Css教程搜索
HTML5教程推薦
- 使用CSS實(shí)現(xiàn)彈性視頻html5案例實(shí)踐
- HTML5教程之html 5 本地?cái)?shù)據(jù)庫(Web Sql Database)
- html5 button autofocus 屬性介紹及應(yīng)用
- html5 canvas 畫圖教程案例分析
- HTML5中實(shí)現(xiàn)拖放效果無須借助javascript
- html5指南-2.如何操作document metadata
- HTML5之SVG 2D入門7—SVG元素的重用與引用
- HTML5之SVG 2D入門12—SVG DOM及DOM操作介紹
- HTML5實(shí)踐-圖片設(shè)置成灰度圖
- 突襲HTML5之Javascript API擴(kuò)展2—地理信息服務(wù)及地理位置API學(xué)習(xí)
- 相關(guān)鏈接:
- 教程說明:
HTML5教程-HTML5 對各個標(biāo)簽的定義與規(guī)定:body的介紹
。