Using Variables in script src

admin

Administrator
Staff member
i have a set of variables in a javascript file called var.js

now there is another javascript file called write.js and in there has the names of the variables set in var.js

however nothing seems to happen??

for example.

This is var.js:
A = 'blah';


Now this is write.js:
document.write(A);

it wont write A, so i was wondering if it was even possible?


Thanks
Goran
 
Back
Top