Javascript::Javascript Data Structures-VariablesJavascript Variables
Variables are generally dynamically typed. Variables are defined by either just assigning them a value or by using the var statement. Variables declared outside of any function, and variables declared without the var statement, are in "global" scope, visible in the entire web page; variables declared inside a function with the var statement are local to that function.
To pass variables from one page to another, a developer can set a cookie or use a hidden frame or window in the background to store them. This approach relies on the browser DOM rather than anything in the JavaScript language itself.
A third way to pass variables between pages is to include them in the call for the next page. The list of arguments is preceded by a question mark, and each argument specification follows the format: name=value. The ampersand character is used as the list separator character. An example of this technique is sample.html?arg1=foo&arg2=bar.
..
Javascript::Javascript Data Structures-Variables Related Sites
[READ MORE : Javascript::Javascript Data Structures-Variables] |