FOLLOW US
4dots Software CODE BLOG

How to create a Global Javascript Variable

To creat a global Javascript variable set it as a window property as following :

window.MY_JAVASCRIPT_VARIABLE=my_javascript_variable;

 

Please Donate!

Please Share!