ie events with other browsers and other substituted

  • Transfer: http://blog.csdn.net/huangbomeizi/archive/2009/10/13/4662172.aspx
  • ie events with other browsers and other substituted
  • In IE, there is no addEventListener method. After the IE5 can attachEvent
  • When using attachEvent, click into the onclick.
  • If there is a way to monitor tag attribute event, there will be no event object is passed to the function of. (Is defined as achieving the first two events the way..) But in IE, no matter what way, IE will pass a window.event.
  • In IE, the target attribute will not get to know which element the event occurred. But we can srcElement to replace it.
  • Said before the, IE does not capture the event, only the event bubble.
  • Not stopPropagation () method, you can set cancelBubble property true.
  • No preventDefault () method, but with returnValue to false to replace it.
  • Remove listener can detachEvent (). To replace the removeEventListener ()
分类:Web 时间:2010-07-03 人气:146
分享到:
blog comments powered by Disqus

相关文章

  • Turn: target and currentTarget 2010-06-16

    http://it.hexun.com/2009-05-05/117373817.html As we mentioned earlier, in the event is triggered, FlashPlayer will create the event object, and each check "Event Journey" on whether the node for registered events listener for the event object as

  • Prototype two common listener 2010-11-20

    Form.Observer (form, interval, callbank), in any form that forms the value of a form control has changed, interval seconds to automatically trigger the callback function Form.Element.Observer (element, interval, callbank), that form the control eleme

  • target goals and tasks 2011-05-14

    Run ant not the case with the parameters, reads the project elements, and use the default attribute as a target implementation. ant task to support all three attributes: id, the unique identifier of a task instance. Used in conjunction with the Refer

  • 网页打开新窗口target=_blank不符合标准 2014-10-18

    我们要在新窗口中打开链接通常的做法是在链接后面加target="_blank",我们采用过渡型的DOCTYPE(xh tml1-transitional. dtd)时没有问题,但是当我们使用严格的DOCTYPE(xhtml1-strict.dtd)时,这个方法将通不过W3C的校验,会出现如下错误提示: "there is no attribute target for this element(in this HTML version)" 原来在HTML4.01/X

  • XSL Study Notes 5 mode attribute 2010-03-29

    XSL Study Notes 5 mode attribute An element of a deal to do several times, then select <xsl: apply-template element in treatment. If you want to deal with each element of the same output of a different result, then need to use the mode attribute. <x

  • jdom queries based on multiple attribute values of each node 2010-03-29

    With XPath.selectSingleNode (root, xpath) method to query a specific node. According to a single attribute query: Element findelement = (Element) XPath.selectSingleNode (root, "/ root / biaodan [@ bdname = '" + chkname +"']"); Accordin

  • Introduction to WAP development and enhancement of user input processing element 2010-07-30

    Part III: WML main grammar - the user input processing element 3.5 User input processing element Through WAP mobile phone keypad, users can show the card to the browser, enter data or operational information. WML provides a treatment for this specifi

  • web.xml in the listener. filter.servlet loading sequence and its Detailed (rpm) 2010-10-27

    I. 1, the start of a project when WEB, WEB container to read its configuration file web.xml, read <listener> and <context-param> two nodes. 2, the emergency was, capacity to create a ServletContext (servlet context), all parts of the web proje

  • web.xml in the listener. filter.servlet loading order and Detailed 2010-11-28

    I. 1, the start of a project when WEB, WEB container to read its configuration file web.xml, read <listener> and <context-param> two nodes. 2, the emergency was, capacity to create a ServletContext (servlet context), all parts of the web proje

  • JS DOM element properties and methods of operation 1 2011-05-21

    Dom element method for the basic operation API, the first recorded for later use. W3C DOM and JavaScript are easily confused. HTML and XML DOM is a document for the API, provides the structure for the representation of the document, and defines how t

iOS 开发

Android 开发

Python 开发

JAVA 开发

开发语言

PHP 开发

Ruby 开发

搜索

前端开发

数据库

开发工具

开放平台

Javascript 开发

.NET 开发

云计算

服务器

Copyright (C) codeweblog.com, All Rights Reserved.

CodeWeblog.com 版权所有 黔ICP备15002463号-1

processed in 0.154 (s). 10 q(s)