if I’m invoking the following functions on page load:
addOnload(checkHeaders_m1)
addOnload(checkHeaders_m2)
addOnload(checkHeaders_m3)
addOnload(checkHeaders_m4)
addOnload(checkHeaders_m5)
can I save myself some code by using a wildcard? something like:
addOnload(checkHeaders_m\*)
if your onload functions are global then they would exist on the
windowobject:Alternatively, make the functions properties of some other object so that you don’t pollute the global namespace: