-2
rated 0 times
[
4]
[
6]
/ answers: 1 / hits: 20491
/ 12 Years ago, sat, june 2, 2012, 12:00:00
Possible Duplicate:
Dynamically Importing JavasScript
Is there a way to access variables which come from external imported JavaScript .js files?
In the external .js file I define a varialbe such as follows:
// JavaScript Document
var PETNAME = Beauty;
After dynamically importing that code, I wish to access PETNAME variable, but I do not get the defined value:
alert(Pet Name: + PETNAME);
What can be wrong, and is there a way to bring values from external .js code into the master JavaScript?
Thank you.
More From » web