Is there a way that a JavaScript function can read the JavaScript source code of other functions in an html page, so that the function can do some checking job on the javascript source code of these other functions?
Maybe a walkabout is how to get the source code of all JavaScript functions in an HTML page.
If you want to see the source of a function, you can use the
toSource()function:I’m not sure about how you’d read the source outside of a function, or even why you’d particularly want to do this.