0

I have a program isOvel.js which has a function isOvel(str) and I want to use this function isOvel(str) in an another program translate.js. Am just started with Javascript functional programming, your help will be much appreciated.!! I could not find any duplicates, please post it if any.

chivas_hvn
  • 361
  • 3
  • 10
  • 24

1 Answers1

0

Javascript file isn't "program" is "file" you can include several files on your page.

<html>
  <head>
    <title>My page</title>
    <script src="isOvel.js" type="text/javascript"></script>
    <script src="translate.js" type="text/javascript"></script>
  </head>
  <body></body>
</html>
user2226755
  • 12,494
  • 5
  • 50
  • 73
  • Am trying to call and test `isOvel()` functionality from another js program, not building any webpage so please let me know how I can call it. – chivas_hvn Nov 18 '15 at 19:34
  • Did you see onload event ? http://stackoverflow.com/questions/20180251/when-to-use-window-onload – user2226755 Nov 18 '15 at 19:36