How to call a function in one .js file from another .js file
I am trying to call a function in two.js file from one.js file.
Here is my code
But the function two() is not working.
How can I do this one??
If both .js files are correctly included in the same document, then there will be no problem calling a function in the other .js file. Effectively, once the two files are included in the same document, it is as if they were always in the same document. There is no distinction, at that point, as to which .js file they originally came from.
When the document.write statement is executed, that is all that the browser will do. It won't execute the write and then the load.
What you want to do is something like:
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)