Is there a way to put a variable in a javascript file so that it increments whenever the file is called (like a static var in Java)? I want to use it to prevent calling a js file twice. Or, is there another way to do this?
Is there a way to put a variable in a javascript file so that
Share
1 Answer