I need something like that:
onClick="function1(); function2();"
with a small delay between the functions. I DON'T WANT to call function2 at the end of function1.
onclick="functionCaller";
<script>
function functionCaller(){
function1();
setTimeout(function2, 500); //this will call function2 after 500 millisecons.
}
</script>