国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

dom document object model 文檔對象模型

2019-11-17 01:31:26
字體:
來源:轉載
供稿:網友

dom document object model 文檔對象模型

1、事件     body 事件         onload onunload onbeforeunload     常見事件         onclick(單擊)、ondblclick(雙擊)、onkeydown(按鍵按下)、onkeyPRess(點擊按鍵)、onkeyup(按鍵釋放)、onmousedown(鼠標按下)、onmousemove(鼠標移動)、onmouSEOut(鼠標離開元素范圍)、onmouseover(鼠標移動到元素范圍)、onmouseup(鼠標按鍵釋放

2、動態設置事件  類似于net中注冊事件     document.ondbclick = f1; //讓document.ondbclick的事件處理函數為f1 3、window對象 window.document.body  當前瀏覽器窗口     方法         alert()         confirm("確定?")         navigate("http://www.baidu.com");         var timerId = setInterval("alert('hello')",500);         clearInterval(timerId)         setTimeout()         clearTimeout()         showModalDialog("window.htm")    模態窗體         showModelessDialog("window.htm")非模態窗體     屬性         window.location.href         window.location.reload() 刷新頁面         window.event             altKey             ctrlKey             shiftKey             returnValue    取消后續內容的執行             srcElement    引發事件的事件源             keyCode        引發事件時的鍵值             button        引發事件時的鼠標鍵1為左鍵,2為右鍵,3為左右鍵同時         screen  分辨率             width             height         clipboardData        粘貼板             getData("Text")             setData("Text",val)             clearData("Text")         history             back()    go(-1)             forward()    go(1)         document             方法                 write()                 writeln()                 getElementById()                 getElementsByName()                 getElementsByTagName()                 createElement()                 appendChild() 4、獲取元素內容     value        innerText     innerHTML 5、動態修改元素樣式     this.style.backgroundColor     this.style.fontSize     this.style.marginTop     this.style.display = "none"隱藏  ""顯示     this.style.width = "18px"

6、form對象     事件         onsubmit     方法         submit()


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 中西区| 曲沃县| 垫江县| 上饶市| 曲水县| 顺义区| 阆中市| 民县| 哈密市| 青岛市| 共和县| 融水| 油尖旺区| 光泽县| 兰考县| 巴彦淖尔市| 湖南省| 安溪县| 墨玉县| 唐海县| 远安县| 福海县| 阿拉善左旗| 通化市| 鱼台县| 伊金霍洛旗| 日喀则市| 舞阳县| 随州市| 江川县| 饶平县| 呈贡县| 峨边| 黎城县| 独山县| 衡阳县| 堆龙德庆县| 元江| 扬中市| 西安市| 宣威市|