Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Calling a mtd of a js file from another js file  RSS feed

 
BalMuralir Krishna
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I have mtd1(java script mtd) in js1(its a .js file) and I have mtd2(java script mtd) in js2(its a .js file). Now my problem is how can i invoke mtd1 from mtd2.
Thanks in advance
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As long as they are bot included on the page and the file you are calling is loaded before you call it, it should be just like it is in the same file.

Eric
[ December 14, 2006: Message edited by: Eric Pascarello ]
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!