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

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -