Menu
Dear fellow developers,
I would like to know how to use the variable same out from the function block.?
1 var tmp;
2 function handleRequest(obj) {
3 var writeroot;
4 writeroot = obj.responseText;
5 tmp = writeroot;
6 }
7 document.write (tmp);
The variable at line 7 shown me “undefined” message,
please advice how to make the variable tmp have the same value with “writeroot”.
Thank you.
KY