+ 1
Why i am getting error while calling window onload function
window.onload = function start(){ //statement return xyz; } start();
2 ответов
+ 2
You don't need to run the function manually (like you do in the last line of your code). The function is automatically triggered when the window finishes loading. Also, make sure xyz is defined.
+ 1
James i want to use this function's variable to another function this was just an example