How do I make the first function to be called within the first click of the button, by the event ondblclick();
and the second function in the second click of the same button.
I imagine invoking the function of the first click on the button and another on the second click, like this:
Notice how it should be:
function a(){
...
declaração
...
}
function b(){
...
declaração
...
}
Already on the button, something like:
<button ondblclick="a();?:b();">2-in-1</button>
It is simple for those who know how to manipulate ?:
, the same as if .. else
, but with a small and appropriate formula for this idea.
Thank you in advance, everyone's help.