You can also have a function that calls other functions, which is the approach I'd take for the sake of maintainability.
Code:
function myFunc1()
{
return true;
}
function myFunc2()
{
return true;
}
function myOnloadFunc()
{
var x = myFunc1();
var y = myFunc2();
if (x && y)
{ return true;
} else
{ return false;
}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.