Click to See Complete Forum and Search --> : Calling Function from other .js File


bharadwajrv
June 24th, 2002, 07:34 AM
Hi,

i have a file by the name "menu.js" which contains few functions (like DropMenu, HideMenu..)..
i wanted to call these function from other files like "index.htm".. how to call these functions.

Thanks in adv..

Surrendermonkey
June 24th, 2002, 11:05 AM
Just link th e .js file thus:
<script language="javascript" src="thisfolder/menu.js">
</script>

and then call your functinos as you would any other:
<script language="javascript">
var f;
f = DropMenu(someArg, otherArg);
</script>
.. or whatever.