Hi,
I have the following script setup:
within myfile.js the script references myVar1, but when i run the script IE says it can't find the variable. Am I doing anything wrong, if so is there a work-a-round?
Cheers
James
I have the following script setup:
Code:
<script language=javascript src=myfile.js>
myVar1 = "test";
</script>
within myfile.js the script references myVar1, but when i run the script IE says it can't find the variable. Am I doing anything wrong, if so is there a work-a-round?
Cheers
James