Is there a way to create a global variable that can be used anywhere within a script?
if I create a variable
I want to use that variable anywhere, like in a function
When I run the function I want it to alert
Can this be done?
Thanks,
timgerr
-How important does a person have to be before they are considered assassinated instead of just murdered?
-Need more cow bell!!!
if I create a variable
Code:
var test = 'This will never change';
Code:
function tryThis()
{
alert(test);
}
When I run the function I want it to alert
Code:
This will never change
Can this be done?
Thanks,
timgerr
-How important does a person have to be before they are considered assassinated instead of just murdered?
-Need more cow bell!!!