What does the third parameter (false) indicate in document.addEventListener(“deviceready”,OnDeviceReady,false); [duplicate]
This is for historical reasons. When the browser event system was first designed, there were two conflicting ways of modelling how it worked. They were called event capture and event bubbling. Take for instance, this HTML: <html> <body> <a href=”#”>Content</a> </body> </html> If an event (e.g. a click) happens on the a element, should the … Read more