javascript - Can we do multi actions with js & html -


i have (simple) question : possible 2 differents actions when click on picture on html page? there examples explain that?

thanks in advance

sure that's easy.

document.getelementbyid("mypic").addeventlistener("click", function(e){     doactionone();     doactiontwo(); }); 

Comments

Popular posts from this blog

java - BeanIO write annotated class to fixedlength -

Using Java 8 lambdas/transformations to combine and flatten two Maps -

How to connect android app to App engine -