Today, my question asks how do I access a function inside a function. So, for example, I have a button, and if I click on it, it will warn. The fact is that if you have a function surrounding the function, the internal function with a warning will not warn.
Here is an example:
HTML:
<button onclick="doStuff()">Alert</button>
JS:
function nothing() { var doStuff = function() { alert("This worked!") } }
therefore, the doStuff() function will not work. Can someone help me find a way to access it?
source share