I'm still fairly new to javascript, so forgive my ignorance, but I need to know the following:
I have a function in the heading of an html page that sets the value of a variable. I'd like to use this variable in the body of the page, but from what I can tell a variable set in a function is only valid in the function. Is this true or am I not doing something correctly?
Thanks,
Tim
I have a function in the heading of an html page that sets the value of a variable. I'd like to use this variable in the body of the page, but from what I can tell a variable set in a function is only valid in the function. Is this true or am I not doing something correctly?
Thanks,
Tim