How do you add a function to document.body.onload
e.g. it is currently onload="function1();"
it needs to become onload="function1(); function2();"
function2(); could be any function bane so this needs to be dynamic.
Ive tried document.body.onload =+ 'function2();' but it doesnt work, also i cant change function1(); so i cant do
Any ideas appreciated.