Click here to Skip to main content
15,886,806 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
here is the logic code
i want to check the execution of function b , if it is completed then next will line execute. how can i do this
JavaScript
function a()
{
   b();
   document.forms[0].action=another action + function=search + parmater=pagerefresh;
   document.forms[0].submit();
}

function b()
{
   document.forms[0].action=action+function=rejectall;
   document.forms[0].submit();
}
Posted
Updated 20-Mar-15 22:57pm
v2

1 solution

Try callback[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900