ie events with other browsers and other substituted

  • Transfer:
  • 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 人气:145
blog comments powered by Disqus


  • Turn: target and currentTarget 2010-06-16 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

  • 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

  • When there is only the implementation of target properties 2011-10-18

    if the target element's attributes or properties unless property can be determined dependence of this goal depends goals, separated by commas. The goal will be listed before the implementation of this goal. description description of the target. if s

  • (Turn) proficient in JavaScript DOM events 2009-01-22

    Event (I) JavaScript Event List Event explain the general onclick event to trigger this event when the mouse clicks ondblclick this event is triggered when the mouse double-click the onmousedown This event is triggered by pressing the mouse onmouseup

iOS 开发

Android 开发

Python 开发



PHP 开发

Ruby 开发






Javascript 开发

.NET 开发



Copyright (C), All Rights Reserved. 版权所有 黔ICP备15002463号-1

processed in 0.215 (s). 12 q(s)