如果你找的javascript的東西的話,建議你 ctrl+F 直接在這個頁上找,因為這裡80%有你要找的,但是要讓你挨著看的話,你就準備看完就去配眼鏡!!
-
- 事件來源對象
event.srcElement.tagName
event.srcElement.type
- 捕獲釋放
event.srcElement.setCapture();
event.srcElement.releaseCapture();
- 事件按鍵
event.keyCode
event.shiftKey
event.altKey
event.ctrlKey
- 事件傳回值
event.returnValue
- 滑鼠位置
event.x
event.y
- 表單使用中的元素
document.activeElement
- 綁定事件
document.captureEvents(Event.KEYDOWN);
- 訪問表單元素
document.all("txt").focus();
document.all("txt").select();
- 表單命令
document.execCommand
- 表單COOKIE
document.cookie
- 菜單事件
document.oncontextmenu
- 建立元素
document.createElement("SPAN");
- 根據滑鼠獲得元素:
document.elementFromPoint(event.x,event.y).tagName=="TD
document.elementFromPoint(event.x,event.y).appendChild(ms)
- 表單圖片
document.images[索引]
- 表單事件綁定
document.onmousedown=scrollwindow;
- 元素
document.表單.elements[索引]
- 對象綁定事件
document.all.xxx.detachEvent('onclick',a);
- 外掛程式數目
navigator.plugins
- 取變數類型
typeof($js_libpath) == "undefined"
- 下拉框
下拉框.options[索引]
下拉框.options.length
- 尋找對象
document.getElementsByName("r1");
document.getElementById(id);
- 定時
timer=setInterval('scrollwindow()',delay);
clearInterval(timer);
- UNCODE編碼
escape() ,unescape
- 父物件
obj.parentElement(dhtml)
obj.parentNode(dom)
- 交換表的行
TableID.moveRow(2,1)
-