Use variable nav outside a function
317
What is the scope of variables in JavaScript?
91194
How to set global variable in functions.php
117923
How to use JavaScript variables in jQuery selectors?
4955
How do I detect a click outside an element?
44112
"Variable" variables in Javascript?
151963
How can I pass my locals and access the variables directly from another function?
152875
Passing javascript variables between pages
132476
How to set Block local variables by code?
49943
Javascript function scoping and hoisting
87129
Jquery:How to use variable as a selector
89651
jQuery selectors with variables
20500
Declaring variables in external script
103549
How to unset a JavaScript variable?
48919
Passing variable number of arguments around
20815
Assignment of function parameter has no effect outside the function
127540
Is it possible to access a function local variable from outside of the function?
120875
Pass vars to JavaScript via the SRC attribute