i have a javascript file called general.js, which contains
general info, for example:
var link="var user="myUser";
QUESTION:
when i link an external .js file into my HTML, for example:
<html>
<head>
<script language="javascript">test.js"></script>
</head>
....
</html>
can i use variables and functions inside the test.js file, that are written in the general.js file, for example:
alert(link); // link is defined in the general.js file
general info, for example:
var link="var user="myUser";
QUESTION:
when i link an external .js file into my HTML, for example:
<html>
<head>
<script language="javascript">test.js"></script>
</head>
....
</html>
can i use variables and functions inside the test.js file, that are written in the general.js file, for example:
alert(link); // link is defined in the general.js file