My attempts at giving global scope to a nested JavaScript function are not working:
//DECLARE FUNCTION B IN GLOBAL SCOPE function B; function A() { //DEFIN
What about:
function A() { window.B = function() { alert("function B is running"); } } //CALL FUNCTION B FROM GLOBAL SCOPE B();