Click to See Complete Forum and Search --> : global variables


okham
11-05-2003, 11:25 AM
..okay, so like, how does one declare a variable in a function as global so that it's available to another function without passing it?

okh

Khalid Ali
11-05-2003, 12:09 PM
without using
var identifier before it
function some(){
var first=0;//local to function scope
innerGlob=4;//global access scope
}


by the way,you should have posted in JavaSCript section..:D

okham
11-05-2003, 12:44 PM
...will do, and thanks for the variable tip Khalid. These forums are really a great way to socialize with the same circles!

okham (hoping to get a bigger, better, faster pc sometime...!)