I am not experienced in using JavaScript. I am trying to use an external JavaScript that I put into a directory js . I need to set a variable, in each html file, that will be used by the external JavaScript file to set a link to a specific URL, depending upon which html file is calling it
Here is my code (in the Body):
I do not get an error when I run it but the external JavaScript is not executing.
What am I doing wrong?
Here is my code (in the Body):
Code:
<script type="text/JavaScript">
<!--//
myvar1="/FileA.html"
<script src="/jscript/Menu01.js" type="text/JavaScript">
//-->
</script></script>
What am I doing wrong?