`
zhangyaochun
  • 浏览: 2568790 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

DOM initEvent

阅读更多

 

    本文来自w3school:http://www.w3school.com.cn/htmldom/event_initevent.asp

    个人学习积累用,感谢!

 

    initEvent()

 

       ---------  初始化新事件对象的属性

 

     语法

 

/*
 * eventType的值:HTMLEvents、 MouseEvents、 UIEvents
 * canBubble 是否冒泡
 * cancelable 是否可以用preventDefault取消事件 
*/
event.initEvent(eventType,canBubble,cancelable);
分享到:
评论

相关推荐

    javascript 触发HTML元素绑定的函数

    clickEvent.initEvent(“click”, false, true); this.fileEl.dom.dispatchEvent(clickEvent);//ff } else if (document.createEventObject) { this.fileEl.dom.fireEvent(“onclick”, document.createEventObject...

    NVKindEditor3.5.4面向对象版(修改)

    this.KE.init({ scope: this, id: this.textarea.dom.name, afterChange: function (id, scope) { scope.fireEvent('changed', scope); } }); this.KE.create(this.tid); delete ct; }, KindEditor是基于...

    DomLastic-js点击删除项目弹性动画插件.zip

    stop: function(event, ui) { $('.container-1 .listToAnimate').animate({ top: 0 }, 200, 'easeInQuad', function() { domLastic.animateItems(); }); } }); }); ...

    JavaScript权威指南

    Advanced Event Handling with DOM Level 2 Section 19.3. The Internet Explorer Event Model Section 19.4. The Netscape 4 Event Model Chapter 20. Compatibility Techniques Section 20.1. Platform...

    最新Python3.5零基础+高级+完整项目(28周全)培训视频学习资料

    深入讲解类的特殊成员方法__init__等 深入讲解类的特殊成员方法__new__等 反射详解 异常处理TryExcept 网络编程Socket介绍 Socket通信案例消息发送与接收 第8周 上节回顾 Socket实现简单的ssh客户端 Socket实现...

    Sortable前端框架

    onMove: function (/**Event*/evt, /**Event*/originalEvent) { // Example: http://jsbin.com/tuyafe/1/edit?js,output evt.dragged; // dragged HTMLElement evt.draggedRect; // TextRectangle {left, top, ...

    出现问题a is defined高手帮忙

    // add event listeners GEvent.addDomListener(buttonDiv, 'click', function(e) { me.buttonclick_(e); }); GEvent.addDomListener(backButtonDiv, 'click', function(e) { me.backbuttonclick_(e); }); ...

    python3.6.5参考手册 chm

    Python参考手册,官方正式版参考手册,chm版。以下摘取部分内容:Navigation index modules | next | Python » 3.6.5 Documentation » Python Documentation contents What’s New in Python ...

    Sakemail

    Developed with a version 2.0b of WSockets and D3.0.9.3.1b- Changed the POP.login to a function that return the number of new msgs.- Added the event OnRetrieveProgress on the SakPOP, and fixed the ...

    Java学习笔记-个人整理的

    {14.4}dom4j}{207}{section.14.4} {14.5}XPath}{210}{section.14.5} {14.6}apache.commons}{211}{section.14.6} {15}sqlite3}{213}{chapter.15} {16}Web基础}{215}{chapter.16} {16.1}...

Global site tag (gtag.js) - Google Analytics