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..
Printable View
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..
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.