JavaScript部分常用代码.docVIP

  • 3
  • 0
  • 约 62页
  • 2017-08-25 发布于江苏
  • 举报
事件源对象 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.elementFro

文档评论(0)

1亿VIP精品文档

相关文档