tonelm54
asked on
Call function
Is it possible to call a function from within a function? But if function isnt declared do nothing?
function showUrlInDialog(options){
(options.onOpen || function () { /*Do nothing*/ });
}
showUrlInDialog({
myValue1:27,
myValue2:45,
onOpen: function () { alert('hello'); }
});
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You will get an undefined error if you have not declared the function before.