ie events with other browsers and other substituted

2010-07-03  来源:本站原创  分类:Web  人气:146 

  • 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 ()
相关文章
  • ie events with other browsers and other substituted 2010-07-03

    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.

  • javascript events keyboard control 2010-06-22

    Access to keyboard control event is to achieve the most effective interactive methods. First need to know is how to initialize the event, the basic statement is as follows: document.onkeydown = keyDown When the browser to read this statement, no matt

  • Should have known of the seven JavaScript Tips 2010-06-09

    I write JavaScript code that has been a long time, can not remember what the beginning of the decade. For JavaScript the language achievements in recent years, I am very excited; I was lucky also beneficiaries of these achievements. I have written ma

  • Flow of events triggered in various browsers in order to discuss 2010-12-06

    We all know that the order of dom flow of events: first, capture, bubbling and then I wrote a small test (ie the browser ignores this, the main flow of events to discuss the standard dom) Test environment: ff => Firefox3.3.11 opera => Opera10.63 chr

  • js events dynamically add and write-off 2009-02-27

    IE's JScript existence of memory leak bug must we all know or have heard of. This is because of IE's memory recovery manager of a design error. When we create a prepared script when a cross-reference, for example, the following code: window.onload =

  • (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

  • js drag events to achieve 2010-06-29

    Javascript is characterized by processing and web dom effects, in most cases we only use the language of the simplest functions, such as making picture Carousel / pages tab and so on, this article will show you how in his own web page the production

  • onbeforeunload and onunload events 2010-07-20

    Onunload, onbeforeunload are refreshed or closed calls, you can <script> script by window.onunload to specify or to specify in <body>. The difference is onbeforeunload executed before the onunload, onunload it can prevent the implementation. O

  • Transfer: A Bug from Google talk about, talk about the compatibility of keyboard events 2010-07-28

    This carried over: http://bbs.blueidea.com/thread-2881962-1-1.html The above is the Google home page, when the input a word, following completion prompt pops up automatically. Function is not complicated, but taking into account all be compatible bro

  • Analysis of JavaScript events. And the capture and bubbling 2010-08-18

    Document model in the browser DOM, the event is for some specific interactions occur, the role of the elements to be issued by the then process the response by the browser. Common events: click, onmouseover, onblur, etc.. DOM (Document Object Model)

  • Detection of different browsers handling of the incident 2010-09-14

    In many western development workers currently WEB browser of almost a fever pitch, which is due to jQuery come up with characteristics of the final analysis, this property detective. However, due to different browser kernel, resulting in different br

  • [Zz] an overview of the major browsers kernel 2010-09-28

    The browser is part of the core rendering engine (Rendering Engine), we generally used to call "browser core", which is responsible for parsing the syntax page (such as HTML, JavaScript) and rendering, display web pages. Therefore, the so-called

  • Description of some of the important events in JavaScript 2010-10-10

    1, JavaScript asynchronous callback Copy the code the code is as follows: <Script language = " JavaScript "> / / Register callback function is loaded on to the window.onload handler window.onload = loaded; / / Pass the address of the Metho

  • How to correctly use the proxy in the event focus and blur events 2010-10-21

    What is the Event Broker (Event Delegation)? If you do not know friends, you can read: "Event delegation in JavaScript", where reference is no longer tired. First, let us work together to review some common sense: Typically support event bubblin

  • Change the front control code-behind CSS, javascript events to increase 2010-11-27

    WebControl class has a property: Attributes (acquisition and control of the property does not correspond to any feature (only for rendering) of the collection.) Property value name and value pairs AttributeCollection. This property can be changed thr

  • javascript get mouse (cursor) position coordinates compatible with IE / Firefox and other browsers 2010-12-17

    <! DOCTYPE html PUBLIC "- / / W3C / / DTD XHTML 1.0 Transitional / / EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv=&quo

  • Understanding JavaScript events 2010-12-20

    In many language learning, the "event" is a more difficult to understand, but also a very important concept. JavaScript event handler in the same, is because of event handling, Ajax drag effect will appear. JavaScript in this article to discuss

  • Around the open source history of the nine events 2010-12-10

    Source article from: http://blog.jobbole.com/entry.php/85 Open Source (open source) the spirit is that users can use, copy, distribute, study and improve the software. This can be traced back to the 1960s, has been half a century. Bole online - caree

  • HTML5 Server-Sent Events With Java Servlets Exampl 2015-05-03

    Since the dawn of modern web applications, push notifications have gained significant traction in industry. Instead of pooling data from server it has now become common that server should notify client. Ajax is so pervasive these days it is almost se

  • js examples of common events 2009-03-03

    <html> <head> <script type="text/javascript"> / / Which mouse button is clicked function whichButton1 (event) ( if (event.button == 2) ( alert ( "You clicked the right mouse button!") ) else ( alert ( "You clicke