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
Post a Comment