Can we put two JavaScript onclick events in one input type button tag? To call two different functions?
This one works:
And this one too:
function Hey() { alert('hey'); } function Ho() { alert('ho'); }
.
So the answer is - yes you can :) However, I'd recommend to use unobtrusive JavaScript.. mixing js with HTML is just nasty.