|
Calling a Function in External JS File
Hi All, I'm very new to Javascript and would like some pointers. If I have multiple functions in the same external Javascript file, how would I call a particular function inside that external JS file from a web page. For instance suppose I have a JS file called myJSFunction.js and within this file I have three functions like the following:
Function1()
{
Do Something
}
Function2()
{
Do What Ever
}
Function3()
{
Do Stuff
}
How would I call Function2() from a web page? Any suggestion is greatly appreciated, thanks in advance.
|