request.onreadystatechange = function () {
if (this.readyState === 4) {
var nav = this.responseText;
}
};
-->use nav here<--
How can I use my variable nav outside this function without being undefined?
request.onreadystatechange = function () {
if (this.readyState === 4) {
var nav = this.responseText;
}
};
-->use nav here<--
How can I use my variable nav outside this function without being undefined?