7/29/2023 0 Comments Order of you dont know js books![]() ![]() If the user clicks on element2 he causesa click event in both element1 and element2. Suppose you have a element inside an element -| element1 || - || |element2 | || - || |-Īnd both have an onClick event handler. On the Introduction to events pageI asked a question that at first sight seems incomprehensible:“If an element and one of its ancestors have an event handler for the same event, whichone should fire first?” Not surprisingly, this depends on the browser. Netscape 4 only supports event capturing, Explorer only supports event bubbling.Netscape 6 and Konqueror support both, while Opera and iCab support neither. ![]()
0 Comments
Leave a Reply. |