I have a JS file which contain 5 function
What I want
function-1 should run when a particular web page is loaded
function-2 should only run when a particular web page is loaded or ready
and so on
How can I acheive this?
functions.js contains the five functions.
window.onload = function-1();
window.onload = function-2();
… and so on, and so on.
To make it on document ready, just place the script right before
</body> that way the page itself is ready before the script is called. If the scripts are there, there is no need for document.ready.
I am getting error like function is not defined this is my js
and this from where I am calling it
This is MyProfile in HR
I am getting error in console function is not defined
You seem to have made the same mistake many other Java developers have made.
I’ll flag your post and request a moderator to move it to a proper forum.
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.