javascript技巧1
來源:易賢網(wǎng) 閱讀:981 次 日期:2014-10-09 09:45:07
溫馨提示:易賢網(wǎng)小編為您整理了“javascript技巧1”,方便廣大網(wǎng)友查閱!

事件源對象

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

創(chuàng)建元素

document.createElement("SPAN");

根據(jù)鼠標獲得元素:

document.elementFromPoint(event.x,event.y).tagName=="TD

document.elementFromPoint(event.x,event.y).appendChild(ms)

窗體圖片

document.images[索引]

更多信息請查看IT技術專欄

更多信息請查看腳本欄目
上一篇:javascript技巧3
易賢網(wǎng)手機網(wǎng)站地址:javascript技巧1
關于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機站點

版權所有:易賢網(wǎng)