how to call a javascript function which created in other JS files
Hi Friends,
I created 2 javascript piece. one link to target js file. one is online script. in second JavaScript, i want to call a function that created in JS files.
I got a error message and can not find list name--undifine function name which created in fristcode.js. which is wrong?
below is my codes.
Thanks for any help.
jim
*******************
<html>
<head><title> test</title>
<script language="javascript" type="text/javascript" SRC="//firstcode.js define a list function
</script>');
<script language="javascript" type="text/javascript">//
// i call list function below for an instance
var newList = null;
newList = new List();
</script>;
</head>
<body>
some code here to call second Javascript
</body>
</html>
Hi Friends,
I created 2 javascript piece. one link to target js file. one is online script. in second JavaScript, i want to call a function that created in JS files.
I got a error message and can not find list name--undifine function name which created in fristcode.js. which is wrong?
below is my codes.
Thanks for any help.
jim
*******************
<html>
<head><title> test</title>
<script language="javascript" type="text/javascript" SRC="//firstcode.js define a list function
</script>');
<script language="javascript" type="text/javascript">//
// i call list function below for an instance
var newList = null;
newList = new List();
</script>;
</head>
<body>
some code here to call second Javascript
</body>
</html>