Which javascript method allows us to register multiple handlers for a single touch event? | Sololearn: Learn to code for FREE!

+1

Which javascript method allows us to register multiple handlers for a single touch event?

12/26/2017 7:50:22 PM

Muhmd Ezz

1 Answer

New Answer

+18

addEventListener("touchstart",function(event){handler1(event);handler2(event);.....}); //fixed order or addEventListener("touchstart",handler1); addEventListener("touchstart",handler2); //unpredictable order of execution?