You are here: irt.org | FAQ | JavaScript | Source | Q64 [ previous next ]
Suppose your ../library.js file contains:
function myFunction(myParameter1,myParameter2) { var x = myParameter1 + myParameter2; return x; }
Then with your html document you need:
<script src="../library.js"> </script> <script language="JavaScript"><!-- alert(myFunction(2,2)); //--></script>