J
Jean
function myFunction(){
document.write('var path="../images/2008/');
}
I use this kind of function to declare the variable path. It's on a
extern javascript file. If I use this function in an other function to
define var path, the result is an error: path not defined. Can someone
explain to me why this doesn't work?
document.write('var path="../images/2008/');
}
I use this kind of function to declare the variable path. It's on a
extern javascript file. If I use this function in an other function to
define var path, the result is an error: path not defined. Can someone
explain to me why this doesn't work?