View Single Post
Old 03-16-2013, 03:42 AM   PM User | #1
DMN
New Coder

 
Join Date: Dec 2012
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
DMN is an unknown quantity at this point
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.
DMN is offline   Reply With Quote