I have a javascript variable defined as:
var name;
In my HTML, I am calling a javascript function that sets the name variable.
Once I return from the function call, the value of name isn't set. What am I doing wrong? How can I access the value of the name variable from the html after the function is called?
var name;
In my HTML, I am calling a javascript function that sets the name variable.
Once I return from the function call, the value of name isn't set. What am I doing wrong? How can I access the value of the name variable from the html after the function is called?